20 lines
628 B
Plaintext
20 lines
628 B
Plaintext
tests/cases/conformance/externalModules/a.ts(6,9): error TS2686: Identifier 'Foo' must be imported from a module
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/a.ts (1 errors) ====
|
|
import * as Bar from './foo';
|
|
Bar.fn();
|
|
let x: Bar.Thing;
|
|
let y: number = x.n;
|
|
// should error
|
|
let z = Foo;
|
|
~~~
|
|
!!! error TS2686: Identifier 'Foo' must be imported from a module
|
|
|
|
==== tests/cases/conformance/externalModules/foo.d.ts (0 errors) ====
|
|
|
|
export var x: number;
|
|
export function fn(): void;
|
|
export interface Thing { n: typeof x }
|
|
export as namespace Foo;
|
|
|