mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
702 B
Plaintext
27 lines
702 B
Plaintext
//// [tests/cases/compiler/exportAssignmentMerging8.ts] ////
|
|
|
|
=== a.ts ===
|
|
type SomeTypeAlias = { x: string };
|
|
>SomeTypeAlias : Symbol(SomeTypeAlias, Decl(a.ts, 0, 0))
|
|
>x : Symbol(x, Decl(a.ts, 0, 22))
|
|
|
|
class Foo {}
|
|
>Foo : Symbol(Foo, Decl(a.ts, 0, 35))
|
|
|
|
export = Foo;
|
|
>Foo : Symbol(Foo, Decl(a.ts, 0, 35))
|
|
|
|
export { SomeTypeAlias };
|
|
>SomeTypeAlias : Symbol(SomeTypeAlias, Decl(a.ts, 3, 8))
|
|
|
|
=== b.ts ===
|
|
import { SomeTypeAlias } from "./a";
|
|
>SomeTypeAlias : Symbol(SomeTypeAlias, Decl(b.ts, 0, 8))
|
|
|
|
const value: SomeTypeAlias = { x: "ok" };
|
|
>value : Symbol(value, Decl(b.ts, 1, 5))
|
|
>SomeTypeAlias : Symbol(SomeTypeAlias, Decl(b.ts, 0, 8))
|
|
>x : Symbol(x, Decl(b.ts, 1, 30))
|
|
|
|
|