27 lines
799 B
Text
27 lines
799 B
Text
=== tests/cases/compiler/consumer.ts ===
|
|
import e = require('./exporter');
|
|
>e : Symbol(e, Decl(consumer.ts, 0, 0))
|
|
|
|
export function w(): e.w { // Should be OK
|
|
>w : Symbol(w, Decl(consumer.ts, 0, 33))
|
|
>e : Symbol(e, Decl(consumer.ts, 0, 0))
|
|
>w : Symbol(e.w, Decl(exporter.ts, 0, 0))
|
|
|
|
return new e.w();
|
|
>e.w : Symbol(e.w, Decl(exporter.ts, 0, 0))
|
|
>e : Symbol(e, Decl(consumer.ts, 0, 0))
|
|
>w : Symbol(e.w, Decl(exporter.ts, 0, 0))
|
|
}
|
|
=== tests/cases/compiler/w1.ts ===
|
|
|
|
export = Widget1
|
|
>Widget1 : Symbol(Widget1, Decl(w1.ts, 1, 16))
|
|
|
|
class Widget1 { name = 'one'; }
|
|
>Widget1 : Symbol(Widget1, Decl(w1.ts, 1, 16))
|
|
>name : Symbol(name, Decl(w1.ts, 2, 15))
|
|
|
|
=== tests/cases/compiler/exporter.ts ===
|
|
export import w = require('./w1');
|
|
>w : Symbol(w, Decl(exporter.ts, 0, 0))
|
|
|