mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
337 B
TypeScript
17 lines
337 B
TypeScript
//// [tests/cases/conformance/references/library-reference-15.ts] ////
|
|
|
|
//// [index.d.ts]
|
|
declare var $: { foo(): void };
|
|
|
|
//// [index.d.ts]
|
|
declare var $2: { foo(): void };
|
|
|
|
//// [consumer.ts]
|
|
$.foo(); // should OK
|
|
$2.foo(); // should error
|
|
|
|
//// [consumer.js]
|
|
"use strict";
|
|
$.foo(); // should OK
|
|
$2.foo(); // should error
|