mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
442 B
Plaintext
15 lines
442 B
Plaintext
//// [tests/cases/conformance/references/library-reference-15.ts] ////
|
|
|
|
=== /a/b/consumer.ts ===
|
|
$.foo(); // should OK
|
|
>$.foo : Symbol(foo, Decl(index.d.ts, 0, 16))
|
|
>$ : Symbol($, Decl(index.d.ts, 0, 11))
|
|
>foo : Symbol(foo, Decl(index.d.ts, 0, 16))
|
|
|
|
$2.foo(); // should error
|
|
=== /a/types/jquery/index.d.ts ===
|
|
declare var $: { foo(): void };
|
|
>$ : Symbol($, Decl(index.d.ts, 0, 11))
|
|
>foo : Symbol(foo, Decl(index.d.ts, 0, 16))
|
|
|