16 lines
470 B
Text
16 lines
470 B
Text
=== 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
|
|
>null : null
|
|
>x : string
|
|
>'' : string
|
|
>y : () => void
|
|
>() => { } : () => void
|
|
>z : number
|
|
>32 : number
|
|
|
|
|