mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
//// [tests/cases/conformance/externalModules/typeOnly/importEquals3.ts] ////
|
|
|
|
=== a.ts ===
|
|
export class A {}
|
|
>A : Symbol(A, Decl(a.ts, 0, 0))
|
|
|
|
=== 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, 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))
|
|
|
|
=== 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(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))
|
|
|