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