22 lines
496 B
Plaintext
22 lines
496 B
Plaintext
=== tests/cases/compiler/targetTypeObjectLiteral.ts ===
|
|
var z: { x: number; y: (w:string)=>number;} = {
|
|
>z : { x: number; y: (w: string) => number; }
|
|
>x : number
|
|
>y : (w: string) => number
|
|
>w : string
|
|
>{ x: 12, y: function(w) { return 0; }} : { x: number; y: (w: string) => number; }
|
|
|
|
x: 12,
|
|
>x : number
|
|
|
|
y: function(w) {
|
|
>y : (w: string) => number
|
|
>function(w) { return 0; } : (w: string) => number
|
|
>w : string
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|