23 lines
333 B
Text
23 lines
333 B
Text
|
=== tests/cases/compiler/assign1.ts ===
|
||
|
module M {
|
||
|
>M : typeof M
|
||
|
|
||
|
interface I {
|
||
|
>I : I
|
||
|
|
||
|
salt:number;
|
||
|
>salt : number
|
||
|
|
||
|
pepper:number;
|
||
|
>pepper : number
|
||
|
}
|
||
|
|
||
|
var x:I={salt:2,pepper:0};
|
||
|
>x : I
|
||
|
>I : I
|
||
|
>{salt:2,pepper:0} : { salt: number; pepper: number; }
|
||
|
>salt : number
|
||
|
>pepper : number
|
||
|
}
|
||
|
|