TypeScript/tests/baselines/reference/declFileRegressionTests.types

17 lines
470 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; }
2014-08-15 23:33:16 +02:00
>{ w: null, x: '', y: () => { }, z: 32 } : { w: null; x: string; y: () => void; z: number; }
>w : null
2015-04-13 21:36:11 +02:00
>null : null
>x : string
2015-04-13 21:36:11 +02:00
>'' : string
>y : () => void
2014-08-15 23:33:16 +02:00
>() => { } : () => void
>z : number
2015-04-13 21:36:11 +02:00
>32 : number
2014-08-15 23:33:16 +02:00