17 lines
409 B
Plaintext
17 lines
409 B
Plaintext
==== 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 TS1037: A function implementation cannot be declared in an ambient context.
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|