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(2,5): error TS1129: Statement expected. tests/cases/compiler/externModule.ts(2,18): error TS1148: Cannot compile external modules unless the '--module' flag is provided. 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(30,1): error TS1128: Declaration or statement expected. ==== tests/cases/compiler/externModule.ts (13 errors) ==== declare module { ~~~~~~~ !!! error TS2304: Cannot find name 'declare'. ~~~~~~ !!! error TS1005: ';' expected. ~~~~~~ !!! error TS2304: Cannot find name 'module'. ~ !!! error TS1005: ';' expected. export class XDate { ~~~~~~ !!! error TS1129: Statement expected. ~~~~~ !!! error TS1148: Cannot compile external modules unless the '--module' flag is provided. 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. } } ~ !!! error TS1128: Declaration or statement expected. var d=new XDate(); d.getDay(); d=new XDate(1978,2); d.getXDate(); var n=XDate.parse("3/2/2004"); n=XDate.UTC(1964,2,1);