29 lines
450 B
Plaintext
29 lines
450 B
Plaintext
|
=== tests/cases/compiler/structural1.ts ===
|
||
|
module M {
|
||
|
>M : typeof M
|
||
|
|
||
|
export interface I {
|
||
|
>I : I
|
||
|
|
||
|
salt:number;
|
||
|
>salt : number
|
||
|
|
||
|
pepper:number;
|
||
|
>pepper : number
|
||
|
}
|
||
|
|
||
|
export function f(i:I) {
|
||
|
>f : (i: I) => void
|
||
|
>i : I
|
||
|
>I : I
|
||
|
}
|
||
|
|
||
|
f({salt:2,pepper:0});
|
||
|
>f({salt:2,pepper:0}) : void
|
||
|
>f : (i: I) => void
|
||
|
>{salt:2,pepper:0} : { salt: number; pepper: number; }
|
||
|
>salt : number
|
||
|
>pepper : number
|
||
|
}
|
||
|
|