mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
808 B
Plaintext
29 lines
808 B
Plaintext
//// [tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging1.ts] ////
|
|
|
|
=== types.ts ===
|
|
declare module "*.foo" {
|
|
>"*.foo" : Symbol("*.foo", Decl(types.ts, 0, 0))
|
|
|
|
let everywhere: string;
|
|
>everywhere : Symbol(everywhere, Decl(types.ts, 1, 5))
|
|
}
|
|
|
|
|
|
=== testA.ts ===
|
|
import { everywhere, onlyInA } from "a.foo";
|
|
>everywhere : Symbol(everywhere, Decl(testA.ts, 0, 8))
|
|
>onlyInA : Symbol(onlyInA, Decl(testA.ts, 0, 20))
|
|
|
|
declare module "a.foo" {
|
|
>"a.foo" : Symbol("a.foo", Decl(testA.ts, 0, 44), Decl(types.ts, 0, 0))
|
|
|
|
let onlyInA: number;
|
|
>onlyInA : Symbol(onlyInA, Decl(testA.ts, 2, 5))
|
|
}
|
|
|
|
=== testB.ts ===
|
|
import { everywhere, onlyInA } from "b.foo"; // Error
|
|
>everywhere : Symbol(everywhere, Decl(testB.ts, 0, 8))
|
|
>onlyInA : Symbol(onlyInA, Decl(testB.ts, 0, 20))
|
|
|