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-07-13 01:04:16 +02:00
|
|
|
!!! Type 'typeof "tests/cases/conformance/externalModules/foo_0"' is not assignable to type '{ M2: Object; }':
|
|
|
|
!!! Property 'M2' is missing in type 'typeof "tests/cases/conformance/externalModules/foo_0"'.
|
|
|
|
|
|
|
|
==== tests/cases/conformance/externalModules/foo_0.ts (0 errors) ====
|
|
|
|
export interface Person {
|
|
|
|
name: string;
|
|
|
|
age: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export module M2 {
|
|
|
|
export interface I2 {
|
|
|
|
x: Person;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|