==== tests/cases/compiler/externModule.ts (13 errors) ==== declare module { ~~~~~~ !!! ';' expected. ~ !!! ';' expected. ~~~~~~~ !!! Cannot find name 'declare'. ~~~~~~ !!! Cannot find name 'module'. export class XDate { ~~~~~~ !!! Statement expected. ~~~~~ !!! Cannot compile external modules unless the '--module' flag is provided. public getDay():number; ~~~~~~ !!! Function implementation is missing or not immediately following the declaration. public getXDate():number; ~~~~~~~~ !!! 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(); ~~~~~~~~~~~~~~ !!! Constructor implementation is missing. static parse(string: string): number; ~~~~~ !!! 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, ~~~ !!! Function implementation is missing or not immediately following the declaration. ms: number): number; static now(): number; ~~~ !!! Function implementation is missing or not immediately following the declaration. } } ~ !!! 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);