2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/extension.ts(16,5): error TS1128: Declaration or statement expected.
|
|
|
|
tests/cases/compiler/extension.ts(16,22): error TS1005: ';' expected.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/extension.ts(10,18): error TS2300: Duplicate identifier 'C'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/extension.ts(16,12): error TS2304: Cannot find name 'extension'.
|
|
|
|
tests/cases/compiler/extension.ts(16,28): error TS2300: Duplicate identifier 'C'.
|
|
|
|
tests/cases/compiler/extension.ts(22,3): error TS2339: Property 'pe' does not exist on type 'C'.
|
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/compiler/extension.ts (6 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
interface I {
|
|
|
|
x;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface I {
|
|
|
|
y;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module M {
|
|
|
|
export class C {
|
2014-10-01 02:15:18 +02:00
|
|
|
~
|
|
|
|
!!! error TS2300: Duplicate identifier 'C'.
|
2014-07-13 01:04:16 +02:00
|
|
|
public p:number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module M {
|
|
|
|
export extension class C {
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1128: Declaration or statement 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 'extension'.
|
2014-07-13 01:04:16 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'C'.
|
2014-07-13 01:04:16 +02:00
|
|
|
public pe:string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var c=new M.C();
|
|
|
|
c.pe;
|
|
|
|
~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2339: Property 'pe' does not exist on type 'C'.
|
2014-07-13 01:04:16 +02:00
|
|
|
c.p;
|
|
|
|
var i:I;
|
|
|
|
i.x;
|
|
|
|
i.y;
|
|
|
|
|
|
|
|
|