mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
745 B
Plaintext
26 lines
745 B
Plaintext
//// [tests/cases/compiler/esModuleInteropPrettyErrorRelatedInformation.ts] ////
|
|
|
|
=== foo.d.ts ===
|
|
declare function foo(): void;
|
|
>foo : Symbol(foo, Decl(foo.d.ts, 0, 0), Decl(foo.d.ts, 0, 29))
|
|
|
|
declare namespace foo {}
|
|
>foo : Symbol(foo, Decl(foo.d.ts, 0, 0), Decl(foo.d.ts, 0, 29))
|
|
|
|
export = foo;
|
|
>foo : Symbol(foo, Decl(foo.d.ts, 0, 0), Decl(foo.d.ts, 0, 29))
|
|
|
|
=== index.ts ===
|
|
import * as foo from "./foo";
|
|
>foo : Symbol(foo, Decl(index.ts, 0, 6))
|
|
|
|
function invoke(f: () => void) { f(); }
|
|
>invoke : Symbol(invoke, Decl(index.ts, 0, 29))
|
|
>f : Symbol(f, Decl(index.ts, 1, 16))
|
|
>f : Symbol(f, Decl(index.ts, 1, 16))
|
|
|
|
invoke(foo);
|
|
>invoke : Symbol(invoke, Decl(index.ts, 0, 29))
|
|
>foo : Symbol(foo, Decl(index.ts, 0, 6))
|
|
|