1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
=== tests/cases/compiler/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))
=== tests/cases/compiler/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))
|