TypeScript/tests/baselines/reference/declFileRegressionTests.types

14 lines
428 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileRegressionTests.ts ===
// 'null' not converted to 'any' in d.ts
// function types not piped through correctly
var n = { w: null, x: '', y: () => { }, z: 32 };
>n : { w: any; x: string; y: () => void; z: number; }
>{ w: null, x: '', y: () => { }, z: 32 } : { w: null; x: string; y: () => void; z: number; }
>w : null
2014-08-15 23:33:16 +02:00
>x : string
>y : () => void
>() => { } : () => void
>z : number