mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35 lines
566 B
TypeScript
35 lines
566 B
TypeScript
//// [tests/cases/compiler/deepElaborationsIntoArrowExpressions.ts] ////
|
|
|
|
//// [deepElaborationsIntoArrowExpressions.ts]
|
|
const a: {
|
|
y(): "a"
|
|
} = {
|
|
y: () => "b"
|
|
};
|
|
|
|
interface Foo {
|
|
a: number;
|
|
}
|
|
|
|
function foo1(): () => Foo {
|
|
return () => ({a: ''});
|
|
}
|
|
|
|
function foo3(): Foo[] {
|
|
return [{a: ''}];
|
|
}
|
|
var y: Foo[] = [{a: ''}]
|
|
|
|
//// [deepElaborationsIntoArrowExpressions.js]
|
|
"use strict";
|
|
const a = {
|
|
y: () => "b"
|
|
};
|
|
function foo1() {
|
|
return () => ({ a: '' });
|
|
}
|
|
function foo3() {
|
|
return [{ a: '' }];
|
|
}
|
|
var y = [{ a: '' }];
|