2014-08-15 23:33:16 +02:00
|
|
|
=== 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
|
2014-08-22 03:39:46 +02:00
|
|
|
>{ x: 12, y: function(w) { return 0; }} : { x: number; y: (w: string) => number; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x: 12,
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
y: function(w) {
|
|
|
|
>y : (w: string) => number
|
2014-08-22 03:39:46 +02:00
|
|
|
>function(w) { return 0; } : (w: string) => number
|
2014-08-15 23:33:16 +02:00
|
|
|
>w : string
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|