mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
690 B
Plaintext
20 lines
690 B
Plaintext
//// [tests/cases/compiler/defaultDeclarationEmitDefaultImport.ts] ////
|
|
|
|
=== root.ts ===
|
|
export function getSomething(): Something { return null as any }
|
|
>getSomething : Symbol(getSomething, Decl(root.ts, 0, 0))
|
|
>Something : Symbol(Something, Decl(root.ts, 0, 64))
|
|
|
|
export default class Something {}
|
|
>Something : Symbol(Something, Decl(root.ts, 0, 64))
|
|
|
|
=== main.ts ===
|
|
import Thing, { getSomething } from "./root";
|
|
>Thing : Symbol(Thing, Decl(main.ts, 0, 6))
|
|
>getSomething : Symbol(getSomething, Decl(main.ts, 0, 15))
|
|
|
|
export const instance = getSomething();
|
|
>instance : Symbol(instance, Decl(main.ts, 1, 12))
|
|
>getSomething : Symbol(getSomething, Decl(main.ts, 0, 15))
|
|
|