26 lines
693 B
Text
26 lines
693 B
Text
=== tests/cases/compiler/structural1.ts ===
|
|
module M {
|
|
>M : Symbol(M, Decl(structural1.ts, 0, 0))
|
|
|
|
export interface I {
|
|
>I : Symbol(I, Decl(structural1.ts, 0, 10))
|
|
|
|
salt:number;
|
|
>salt : Symbol(salt, Decl(structural1.ts, 1, 24))
|
|
|
|
pepper:number;
|
|
>pepper : Symbol(pepper, Decl(structural1.ts, 2, 20))
|
|
}
|
|
|
|
export function f(i:I) {
|
|
>f : Symbol(f, Decl(structural1.ts, 4, 5))
|
|
>i : Symbol(i, Decl(structural1.ts, 6, 22))
|
|
>I : Symbol(I, Decl(structural1.ts, 0, 10))
|
|
}
|
|
|
|
f({salt:2,pepper:0});
|
|
>f : Symbol(f, Decl(structural1.ts, 4, 5))
|
|
>salt : Symbol(salt, Decl(structural1.ts, 9, 7))
|
|
>pepper : Symbol(pepper, Decl(structural1.ts, 9, 14))
|
|
}
|
|
|