22 lines
528 B
Text
22 lines
528 B
Text
|
=== tests/cases/compiler/assign1.ts ===
|
||
|
module M {
|
||
|
>M : Symbol(M, Decl(assign1.ts, 0, 0))
|
||
|
|
||
|
interface I {
|
||
|
>I : Symbol(I, Decl(assign1.ts, 0, 10))
|
||
|
|
||
|
salt:number;
|
||
|
>salt : Symbol(salt, Decl(assign1.ts, 1, 17))
|
||
|
|
||
|
pepper:number;
|
||
|
>pepper : Symbol(pepper, Decl(assign1.ts, 2, 20))
|
||
|
}
|
||
|
|
||
|
var x:I={salt:2,pepper:0};
|
||
|
>x : Symbol(x, Decl(assign1.ts, 6, 7))
|
||
|
>I : Symbol(I, Decl(assign1.ts, 0, 10))
|
||
|
>salt : Symbol(salt, Decl(assign1.ts, 6, 13))
|
||
|
>pepper : Symbol(pepper, Decl(assign1.ts, 6, 20))
|
||
|
}
|
||
|
|