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');
|
2014-08-28 21:40:58 +02:00
|
|
|
>a : typeof a
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var y = a.x;
|
|
|
|
>y : number
|
|
|
|
>a.x : number
|
2014-08-25 19:36:12 +02:00
|
|
|
>a : typeof a
|
2014-08-15 23:33:16 +02:00
|
|
|
>x : number
|
|
|
|
|
|
|
|
export import b = a;
|
2014-08-28 21:40:58 +02:00
|
|
|
>b : typeof a
|
2014-08-25 19:36:12 +02:00
|
|
|
>a : typeof a
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var z = b.x;
|
|
|
|
>z : number
|
|
|
|
>b.x : number
|
2014-08-25 19:36:12 +02:00
|
|
|
>b : typeof a
|
2014-08-15 23:33:16 +02:00
|
|
|
>x : number
|
|
|
|
|
|
|
|
=== tests/cases/compiler/declFileForExportedImport_0.ts ===
|
|
|
|
export var x: number;
|
|
|
|
>x : number
|
|
|
|
|