2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/externModule.ts(1,9): error TS1005: ';' expected.
|
|
|
|
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(30,1): error TS1128: Declaration or statement expected.
|
|
|
|
tests/cases/compiler/externModule.ts(1,1): error TS2304: Cannot find name 'declare'.
|
|
|
|
tests/cases/compiler/externModule.ts(1,9): error TS2304: Cannot find name 'module'.
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/externModule.ts (13 errors) ====
|
|
|
|
declare module {
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ';' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ';' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'declare'.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'module'.
|
2014-07-13 01:04:16 +02:00
|
|
|
export class XDate {
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1129: Statement expected.
|
2014-07-19 02:30:06 +02:00
|
|
|
~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
2014-07-13 01:04:16 +02:00
|
|
|
public getDay():number;
|
2014-07-31 01:27:13 +02:00
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
2014-07-13 01:04:16 +02:00
|
|
|
public getXDate():number;
|
2014-07-31 01:27:13 +02:00
|
|
|
~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
2014-07-13 01:04:16 +02:00
|
|
|
// 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();
|
|
|
|
~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2390: Constructor implementation is missing.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
static parse(string: string): number;
|
2014-07-31 01:27:13 +02:00
|
|
|
~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
2014-07-13 01:04:16 +02:00
|
|
|
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,
|
2014-07-31 01:27:13 +02:00
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
2014-07-13 01:04:16 +02:00
|
|
|
ms: number): number;
|
|
|
|
static now(): number;
|
2014-07-31 01:27:13 +02:00
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1128: Declaration or statement expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|