28 lines
675 B
Plaintext
28 lines
675 B
Plaintext
|
=== 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
|
||
|
|
||
|
b: 20
|
||
|
>b : number
|
||
|
|
||
|
};
|
||
|
|