mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
498 B
Plaintext
22 lines
498 B
Plaintext
//// [tests/cases/compiler/externalModuleResolution.ts] ////
|
|
|
|
=== consumer.ts ===
|
|
import x = require('./foo');
|
|
>x : Symbol(x, Decl(consumer.ts, 0, 0))
|
|
|
|
x.Y // .ts should be picked
|
|
>x.Y : Symbol(x.Y, Decl(foo.ts, 1, 14))
|
|
>x : Symbol(x, Decl(consumer.ts, 0, 0))
|
|
>Y : Symbol(x.Y, Decl(foo.ts, 1, 14))
|
|
|
|
=== foo.ts ===
|
|
namespace M2 {
|
|
>M2 : Symbol(M2, Decl(foo.ts, 0, 0))
|
|
|
|
export var Y = 1;
|
|
>Y : Symbol(Y, Decl(foo.ts, 1, 14))
|
|
}
|
|
export = M2
|
|
>M2 : Symbol(M2, Decl(foo.ts, 0, 0))
|
|
|