1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
=== tests/cases/conformance/externalModules/typeOnly/a.ts ===
export class A {}
>A : Symbol(A, Decl(a.ts, 0, 0))
=== tests/cases/conformance/externalModules/typeOnly/b.ts ===
import type * as a from './a';
>a : Symbol(a, Decl(b.ts, 0, 11))
import A = a.A; // Error
>A : Symbol(A, Decl(b.ts, 0, 30))
>a : Symbol(a, Decl(b.ts, 0, 11))
>A : Symbol(a.A, Decl(a.ts, 0, 0))
import aa = a; // Error
>aa : Symbol(aa, Decl(b.ts, 1, 15))
>a : Symbol(a, Decl(b.ts, 0, 11))
const x = 0;
>x : Symbol(x, Decl(b.ts, 4, 5))
export { a, A, x };
>a : Symbol(a, Decl(b.ts, 5, 8))
>A : Symbol(A, Decl(b.ts, 5, 11))
>x : Symbol(x, Decl(b.ts, 5, 14))
=== tests/cases/conformance/externalModules/typeOnly/c.ts ===
import * as b from './b';
>b : Symbol(b, Decl(c.ts, 0, 6))
import A = b.a.A; // Error
>A : Symbol(A, Decl(c.ts, 0, 25))
>b : Symbol(b, Decl(c.ts, 0, 6))
>a : Symbol(b.a, Decl(b.ts, 5, 8))
>A : Symbol(b.a.A, Decl(a.ts, 0, 0))
import AA = b.A; // Error
>AA : Symbol(AA, Decl(c.ts, 1, 17))
>b : Symbol(b, Decl(c.ts, 0, 6))
>A : Symbol(b.A, Decl(b.ts, 5, 11))
import x = b.x;
>x : Symbol(x, Decl(c.ts, 2, 16))
>b : Symbol(b, Decl(c.ts, 0, 6))
>x : Symbol(b.x, Decl(b.ts, 5, 14))
console.log(x);
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
>x : Symbol(x, Decl(c.ts, 2, 16))
|