tests/cases/compiler/externModule.ts(1,1): error TS2304: Cannot find name 'declare'. tests/cases/compiler/externModule.ts(1,9): error TS1005: ';' expected. tests/cases/compiler/externModule.ts(1,9): error TS2304: Cannot find name 'module'. tests/cases/compiler/externModule.ts(1,16): error TS1005: ';' expected. tests/cases/compiler/externModule.ts(3,10): error TS2391: Function implementation is missing or not immediately following the declaration. tests/cases/compiler/externModule.ts(4,10): error TS2391: Function implementation is missing or not immediately following the declaration. tests/cases/compiler/externModule.ts(18,6): error TS2390: Constructor implementation is missing. tests/cases/compiler/externModule.ts(20,13): error TS2391: Function implementation is missing or not immediately following the declaration. tests/cases/compiler/externModule.ts(26,13): error TS2391: Function implementation is missing or not immediately following the declaration. tests/cases/compiler/externModule.ts(28,13): error TS2391: Function implementation is missing or not immediately following the declaration. tests/cases/compiler/externModule.ts(32,11): error TS2304: Cannot find name 'XDate'. tests/cases/compiler/externModule.ts(34,7): error TS2304: Cannot find name 'XDate'. tests/cases/compiler/externModule.ts(36,7): error TS2304: Cannot find name 'XDate'. tests/cases/compiler/externModule.ts(37,3): error TS2304: Cannot find name 'XDate'. ==== tests/cases/compiler/externModule.ts (14 errors) ==== declare module { ~~~~~~~ !!! error TS2304: Cannot find name 'declare'. ~~~~~~ !!! error TS1005: ';' expected. ~~~~~~ !!! error TS2304: Cannot find name 'module'. ~ !!! error TS1005: ';' expected. export class XDate { public getDay():number; ~~~~~~ !!! error TS2391: Function implementation is missing or not immediately following the declaration. public getXDate():number; ~~~~~~~~ !!! error TS2391: Function implementation is missing or not immediately following the declaration. // etc. // Called as a function // Not supported anymore? public (): string; // Called as a constructor constructor(year: number, month: number); constructor(year: number, month: number, date: number); constructor(year: number, month: number, date: number, hours: number); constructor(year: number, month: number, date: number, hours: number, minutes: number); constructor(year: number, month: number, date: number, hours: number, minutes: number, seconds: number); constructor(year: number, month: number, date: number, hours: number, minutes: number, seconds: number, ms: number); constructor(value: number); constructor(); ~~~~~~~~~~~~~~ !!! error TS2390: Constructor implementation is missing. static parse(string: string): number; ~~~~~ !!! error TS2391: Function implementation is missing or not immediately following the declaration. static UTC(year: number, month: number): number; static UTC(year: number, month: number, date: number): number; static UTC(year: number, month: number, date: number, hours: number): number; static UTC(year: number, month: number, date: number, hours: number, minutes: number): number; static UTC(year: number, month: number, date: number, hours: number, minutes: number, seconds: number): number; static UTC(year: number, month: number, date: number, hours: number, minutes: number, seconds: number, ~~~ !!! error TS2391: Function implementation is missing or not immediately following the declaration. ms: number): number; static now(): number; ~~~ !!! error TS2391: Function implementation is missing or not immediately following the declaration. } } var d=new XDate(); ~~~~~ !!! error TS2304: Cannot find name 'XDate'. d.getDay(); d=new XDate(1978,2); ~~~~~ !!! error TS2304: Cannot find name 'XDate'. d.getXDate(); var n=XDate.parse("3/2/2004"); ~~~~~ !!! error TS2304: Cannot find name 'XDate'. n=XDate.UTC(1964,2,1); ~~~~~ !!! error TS2304: Cannot find name 'XDate'.