20 lines
No EOL
520 B
Text
20 lines
No EOL
520 B
Text
tests/cases/compiler/externSyntax.ts(8,20): error TS1184: An implementation cannot be declared in ambient contexts.
|
|
|
|
|
|
==== 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
|
|
~
|
|
!!! error TS1184: An implementation cannot be declared in ambient contexts.
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|