TypeScript/tests/baselines/reference/declFileForExportedImport.types

26 lines
1.1 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileForExportedImport_1.ts ===
///<reference path='declFileForExportedImport_0.ts'/>
export import a = require('declFileForExportedImport_0');
2015-04-13 23:01:57 +02:00
>a : typeof a, Symbol(a, Decl(declFileForExportedImport_1.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var y = a.x;
2015-04-13 23:01:57 +02:00
>y : number, Symbol(y, Decl(declFileForExportedImport_1.ts, 2, 3))
>a.x : number, Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10))
>a : typeof a, Symbol(a, Decl(declFileForExportedImport_1.ts, 0, 0))
>x : number, Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10))
2014-08-15 23:33:16 +02:00
export import b = a;
2015-04-13 23:01:57 +02:00
>b : typeof a, Symbol(b, Decl(declFileForExportedImport_1.ts, 2, 12))
>a : typeof a, Symbol(a, Decl(declFileForExportedImport_0.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var z = b.x;
2015-04-13 23:01:57 +02:00
>z : number, Symbol(z, Decl(declFileForExportedImport_1.ts, 5, 3))
>b.x : number, Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10))
>b : typeof a, Symbol(b, Decl(declFileForExportedImport_1.ts, 2, 12))
>x : number, Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10))
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileForExportedImport_0.ts ===
export var x: number;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(declFileForExportedImport_0.ts, 0, 10))
2014-08-15 23:33:16 +02:00