TypeScript/tests/baselines/reference/umd5.errors.txt
Ryan Cavanaugh 44aa7388ea UMD support
2016-03-09 10:08:24 -08:00

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;