20 lines
No EOL
580 B
Text
20 lines
No EOL
580 B
Text
tests/cases/conformance/externalModules/a.ts(6,9): error TS2304: Cannot find name 'Foo'.
|
|
|
|
|
|
==== 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 TS2304: Cannot find name 'Foo'.
|
|
|
|
==== 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;
|
|
|