* Dive into simple arrow functions when elaborating errors * Dive into array literals as though they were tuples when elaborating, if possible * Make parameter required * Remove misleading errors by deeply tuplefying * Remove lib related spans
19 lines
252 B
TypeScript
19 lines
252 B
TypeScript
// @target: es6
|
|
const a: {
|
|
y(): "a"
|
|
} = {
|
|
y: () => "b"
|
|
};
|
|
|
|
interface Foo {
|
|
a: number;
|
|
}
|
|
|
|
function foo1(): () => Foo {
|
|
return () => ({a: ''});
|
|
}
|
|
|
|
function foo3(): Foo[] {
|
|
return [{a: ''}];
|
|
}
|
|
var y: Foo[] = [{a: ''}] |