2014-12-17 04:30:08 +01:00
|
|
|
tests/cases/compiler/externSyntax.ts(8,20): error TS1184: An implementation cannot be declared in ambient contexts.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/externSyntax.ts (1 errors) ====
|
|
|
|
declare var v;
|
|
|
|
declare module M {
|
|
|
|
export class D {
|
|
|
|
public p;
|
|
|
|
}
|
|
|
|
export class C {
|
|
|
|
public f();
|
|
|
|
public g() { } // error body
|
|
|
|
~
|
2014-12-17 04:30:08 +01:00
|
|
|
!!! error TS1184: An implementation cannot be declared in ambient contexts.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|