TypeScript/tests/baselines/reference/externModule.errors.txt

84 lines
4.3 KiB
Plaintext
Raw Normal View History

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) ====
2014-07-13 01:04:16 +02:00
declare module {
~~~~~~~
!!! error TS2304: Cannot find name 'declare'.
2014-07-13 01:04:16 +02:00
~~~~~~
!!! error TS1005: ';' expected.
~~~~~~
!!! error TS2304: Cannot find name 'module'.
~
!!! error TS1005: ';' expected.
2014-07-13 01:04:16 +02:00
export class XDate {
public getDay():number;
2014-07-31 01:27:13 +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
~~~~~~~~
!!! 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();
~~~~~~~~~~~~~~
!!! 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
~~~~~
!!! 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
~~~
!!! 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
~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
2014-07-13 01:04:16 +02:00
}
}
var d=new XDate();
~~~~~
!!! error TS2304: Cannot find name 'XDate'.
2014-07-13 01:04:16 +02:00
d.getDay();
d=new XDate(1978,2);
~~~~~
!!! error TS2304: Cannot find name 'XDate'.
2014-07-13 01:04:16 +02:00
d.getXDate();
var n=XDate.parse("3/2/2004");
~~~~~
!!! error TS2304: Cannot find name 'XDate'.
2014-07-13 01:04:16 +02:00
n=XDate.UTC(1964,2,1);
~~~~~
!!! error TS2304: Cannot find name 'XDate'.
2014-07-13 01:04:16 +02:00