mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
580 B
Plaintext
23 lines
580 B
Plaintext
//// [tests/cases/conformance/externalModules/typeOnly/exportNamespace10.ts] ////
|
|
|
|
=== /a.ts ===
|
|
export class A {}
|
|
>A : Symbol(A, Decl(a.ts, 0, 0))
|
|
|
|
=== /b.ts ===
|
|
export type * as ns from "./a";
|
|
>ns : Symbol(ns, Decl(b.ts, 0, 11))
|
|
|
|
=== /c.ts ===
|
|
import { ns } from "./b";
|
|
>ns : Symbol(ns, Decl(c.ts, 0, 8))
|
|
|
|
let _: ns.A = new ns.A(); // Error
|
|
>_ : Symbol(_, Decl(c.ts, 1, 3))
|
|
>ns : Symbol(ns, Decl(c.ts, 0, 8))
|
|
>A : Symbol(ns.A, Decl(a.ts, 0, 0))
|
|
>ns.A : Symbol(ns.A, Decl(a.ts, 0, 0))
|
|
>ns : Symbol(ns, Decl(c.ts, 0, 8))
|
|
>A : Symbol(ns.A, Decl(a.ts, 0, 0))
|
|
|