mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
908 B
Plaintext
38 lines
908 B
Plaintext
//// [tests/cases/compiler/exportAssignmentMerging10.ts] ////
|
|
|
|
=== a.ts ===
|
|
class Foo {}
|
|
>Foo : Symbol(Foo, Decl(a.ts, 0, 0), Decl(a.ts, 6, 20))
|
|
|
|
export class Base<T> {
|
|
>Base : Symbol(Base, Decl(a.ts, 0, 12))
|
|
>T : Symbol(T, Decl(a.ts, 2, 18))
|
|
|
|
value!: T;
|
|
>value : Symbol(Base.value, Decl(a.ts, 2, 22))
|
|
>T : Symbol(T, Decl(a.ts, 2, 18))
|
|
}
|
|
|
|
import _Base = Base;
|
|
>_Base : Symbol(_Base, Decl(a.ts, 4, 1))
|
|
|
|
namespace Foo {
|
|
>Foo : Symbol(Foo, Decl(a.ts, 0, 0), Decl(a.ts, 6, 20))
|
|
|
|
export import Base = _Base;
|
|
>Base : Symbol(Base, Decl(a.ts, 8, 15))
|
|
>_Base : Symbol(_Base, Decl(a.ts, 4, 1))
|
|
}
|
|
|
|
export = Foo;
|
|
>Foo : Symbol(Foo, Decl(a.ts, 0, 0), Decl(a.ts, 6, 20))
|
|
|
|
=== b.ts ===
|
|
import { Base } from "./a";
|
|
>Base : Symbol(Base, Decl(b.ts, 0, 8))
|
|
|
|
class Derived extends Base<string> {}
|
|
>Derived : Symbol(Derived, Decl(b.ts, 0, 27))
|
|
>Base : Symbol(Base, Decl(b.ts, 0, 8))
|
|
|