2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declInput3.ts ===
|
|
|
|
interface bar2 {
|
|
|
|
>bar2 : bar2
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
class bar {
|
|
|
|
>bar : bar
|
|
|
|
|
|
|
|
public f() { return ''; }
|
|
|
|
>f : () => string
|
|
|
|
|
|
|
|
public g() { return {a: <bar>null, b: undefined, c: void 4 }; }
|
|
|
|
>g : () => { a: bar; b: any; c: any; }
|
|
|
|
>{a: <bar>null, b: undefined, c: void 4 } : { a: bar; b: undefined; c: undefined; }
|
|
|
|
>a : bar
|
|
|
|
><bar>null : bar
|
|
|
|
>bar : bar
|
2014-09-10 21:58:30 +02:00
|
|
|
>b : undefined
|
2014-08-15 23:33:16 +02:00
|
|
|
>undefined : undefined
|
2014-09-10 21:58:30 +02:00
|
|
|
>c : undefined
|
2014-08-15 23:33:16 +02:00
|
|
|
>void 4 : undefined
|
|
|
|
|
|
|
|
public h(x = 4, y = null, z = '') { x++; }
|
|
|
|
>h : (x?: number, y?: any, z?: string) => void
|
|
|
|
>x : number
|
|
|
|
>y : any
|
|
|
|
>z : string
|
|
|
|
>x++ : number
|
|
|
|
>x : number
|
|
|
|
}
|
|
|
|
|