2014-11-05 21:26:03 +01:00
tests/cases/conformance/externalModules/foo_1.ts(5,5): error TS2322: Type 'typeof "tests/cases/conformance/externalModules/foo_0"' is not assignable to type '{ M2: Object; }'.
2014-09-12 22:35:07 +02:00
Property 'M2' is missing in type 'typeof "tests/cases/conformance/externalModules/foo_0"'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/externalModules/foo_1.ts (1 errors) ====
import foo0 = require('./foo_0');
// Per 11.2.3, foo_0 should still be "instantiated", albeit with no members
var x: typeof foo0 = {};
var y: {M2: Object} = foo0;
2014-07-19 02:30:06 +02:00
~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type 'typeof "tests/cases/conformance/externalModules/foo_0"' is not assignable to type '{ M2: Object; }'.
!!! error TS2322: Property 'M2' is missing in type 'typeof "tests/cases/conformance/externalModules/foo_0"'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/externalModules/foo_0.ts (0 errors) ====
export interface Person {
name: string;
age: number;
}
export module M2 {
export interface I2 {
x: Person;
}
}