mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
645 B
Plaintext
25 lines
645 B
Plaintext
//// [tests/cases/compiler/allowSyntheticDefaultImports9.ts] ////
|
|
|
|
=== b.d.ts ===
|
|
export function foo();
|
|
>foo : Symbol(foo, Decl(b.d.ts, 0, 0))
|
|
|
|
export function bar();
|
|
>bar : Symbol(bar, Decl(b.d.ts, 0, 22))
|
|
|
|
=== a.ts ===
|
|
import { default as Foo } from "./b";
|
|
>default : Symbol(Foo, Decl(b.d.ts, 0, 0))
|
|
>Foo : Symbol(Foo, Decl(a.ts, 0, 8))
|
|
|
|
Foo.bar();
|
|
>Foo.bar : Symbol(Foo.bar, Decl(b.d.ts, 0, 22))
|
|
>Foo : Symbol(Foo, Decl(a.ts, 0, 8))
|
|
>bar : Symbol(Foo.bar, Decl(b.d.ts, 0, 22))
|
|
|
|
Foo.foo();
|
|
>Foo.foo : Symbol(Foo.foo, Decl(b.d.ts, 0, 0))
|
|
>Foo : Symbol(Foo, Decl(a.ts, 0, 8))
|
|
>foo : Symbol(Foo.foo, Decl(b.d.ts, 0, 0))
|
|
|