29 lines
703 B
Text
29 lines
703 B
Text
=== tests/cases/compiler/b.ts ===
|
|
/*--------------------------------------------------------------------------
|
|
Copyright
|
|
---------------------------------------------------------------------------*/
|
|
|
|
///<reference path="a.ts"/>
|
|
var y = x;
|
|
>y : { a: number; b: number; }
|
|
>x : { a: number; b: number; }
|
|
|
|
=== tests/cases/compiler/a.ts ===
|
|
/*--------------------------------------------------------------------------
|
|
Copyright
|
|
---------------------------------------------------------------------------*/
|
|
|
|
var x = {
|
|
>x : { a: number; b: number; }
|
|
>{ a: 10, b: 20} : { a: number; b: number; }
|
|
|
|
a: 10,
|
|
>a : number
|
|
>10 : number
|
|
|
|
b: 20
|
|
>b : number
|
|
>20 : number
|
|
|
|
};
|
|
|