mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
561 B
Plaintext
24 lines
561 B
Plaintext
//// [tests/cases/compiler/assign1.ts] ////
|
|
|
|
=== assign1.ts ===
|
|
namespace M {
|
|
>M : Symbol(M, Decl(assign1.ts, 0, 0))
|
|
|
|
interface I {
|
|
>I : Symbol(I, Decl(assign1.ts, 0, 13))
|
|
|
|
salt:number;
|
|
>salt : Symbol(I.salt, Decl(assign1.ts, 1, 17))
|
|
|
|
pepper:number;
|
|
>pepper : Symbol(I.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, 13))
|
|
>salt : Symbol(salt, Decl(assign1.ts, 6, 13))
|
|
>pepper : Symbol(pepper, Decl(assign1.ts, 6, 20))
|
|
}
|
|
|