mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
845 B
Plaintext
30 lines
845 B
Plaintext
//// [tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging3.ts] ////
|
|
|
|
=== types.ts ===
|
|
declare module "*.foo" {
|
|
>"*.foo" : Symbol("*.foo", Decl(types.ts, 0, 0))
|
|
|
|
export interface OhNo { star: string }
|
|
>OhNo : Symbol(OhNo, Decl(types.ts, 0, 24))
|
|
>star : Symbol(OhNo.star, Decl(types.ts, 1, 25))
|
|
}
|
|
|
|
=== test.ts ===
|
|
declare module "a.foo" {
|
|
>"a.foo" : Symbol("a.foo", Decl(test.ts, 0, 0), Decl(types.ts, 0, 0))
|
|
|
|
export interface OhNo { a: string }
|
|
>OhNo : Symbol(OhNo, Decl(test.ts, 0, 24), Decl(types.ts, 0, 24))
|
|
>a : Symbol(OhNo.a, Decl(test.ts, 1, 25))
|
|
}
|
|
import { OhNo } from "b.foo"
|
|
>OhNo : Symbol(OhNo, Decl(test.ts, 3, 8))
|
|
|
|
declare let ohno: OhNo;
|
|
>ohno : Symbol(ohno, Decl(test.ts, 4, 11))
|
|
>OhNo : Symbol(OhNo, Decl(test.ts, 3, 8))
|
|
|
|
ohno.a // oh no
|
|
>ohno : Symbol(ohno, Decl(test.ts, 4, 11))
|
|
|