mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
//// [tests/cases/compiler/declFileForExportedImport.ts] ////
|
|
|
|
=== declFileForExportedImport_1.ts ===
|
|
///<reference path='declFileForExportedImport_0.ts'/>
|
|
export import a = require('./declFileForExportedImport_0');
|
|
>a : Symbol(a, Decl(declFileForExportedImport_1.ts, 0, 0))
|
|
|
|
var y = a.x;
|
|
>y : Symbol(y, Decl(declFileForExportedImport_1.ts, 2, 3))
|
|
>a.x : Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10))
|
|
>a : Symbol(a, Decl(declFileForExportedImport_1.ts, 0, 0))
|
|
>x : Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10))
|
|
|
|
export import b = a;
|
|
>b : Symbol(b, Decl(declFileForExportedImport_1.ts, 2, 12))
|
|
>a : Symbol(a, Decl(declFileForExportedImport_1.ts, 0, 0))
|
|
|
|
var z = b.x;
|
|
>z : Symbol(z, Decl(declFileForExportedImport_1.ts, 5, 3))
|
|
>b.x : Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10))
|
|
>b : Symbol(b, Decl(declFileForExportedImport_1.ts, 2, 12))
|
|
>x : Symbol(a.x, Decl(declFileForExportedImport_0.ts, 0, 10))
|
|
|
|
=== declFileForExportedImport_0.ts ===
|
|
export var x: number;
|
|
>x : Symbol(x, Decl(declFileForExportedImport_0.ts, 0, 10))
|
|
|