mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
552 B
Plaintext
19 lines
552 B
Plaintext
//// [tests/cases/compiler/exportDeclarationsInAmbientNamespaces2.ts] ////
|
|
|
|
=== exportDeclarationsInAmbientNamespaces2.ts ===
|
|
declare module "mod" {
|
|
>"mod" : Symbol("mod", Decl(exportDeclarationsInAmbientNamespaces2.ts, 0, 0))
|
|
|
|
export var x: number;
|
|
>x : Symbol(x, Decl(exportDeclarationsInAmbientNamespaces2.ts, 1, 14))
|
|
}
|
|
|
|
declare namespace N {
|
|
>N : Symbol(N, Decl(exportDeclarationsInAmbientNamespaces2.ts, 2, 1))
|
|
|
|
export { x } from "mod"; // Error
|
|
>x : Symbol(x, Decl(exportDeclarationsInAmbientNamespaces2.ts, 5, 12))
|
|
}
|
|
|
|
|