25 lines
729 B
Text
25 lines
729 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 {name: 'value' };
|
|
>name : Symbol(name, Decl(consumer.ts, 3, 12))
|
|
}
|
|
=== tests/cases/compiler/w1.ts ===
|
|
|
|
export = Widget1
|
|
>Widget1 : Symbol(Widget1, Decl(w1.ts, 1, 16))
|
|
|
|
interface Widget1 { name: string; }
|
|
>Widget1 : Symbol(Widget1, Decl(w1.ts, 1, 16))
|
|
>name : Symbol(name, Decl(w1.ts, 2, 19))
|
|
|
|
=== tests/cases/compiler/exporter.ts ===
|
|
export import w = require('./w1');
|
|
>w : Symbol(w, Decl(exporter.ts, 0, 0))
|
|
|