21 lines
297 B
Text
21 lines
297 B
Text
=== tests/cases/compiler/i3.ts ===
|
|
interface I3 { one?: number; };
|
|
>one : number
|
|
|
|
var x: {one: number};
|
|
>x : { one: number; }
|
|
>one : number
|
|
|
|
var i: I3;
|
|
>i : I3
|
|
|
|
i = x;
|
|
>i = x : { one: number; }
|
|
>i : I3
|
|
>x : { one: number; }
|
|
|
|
x = i;
|
|
>x = i : I3
|
|
>x : { one: number; }
|
|
>i : I3
|
|
|