mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
481 B
Plaintext
20 lines
481 B
Plaintext
externSyntax.ts(8,20): error TS1183: An implementation cannot be declared in ambient contexts.
|
|
|
|
|
|
==== externSyntax.ts (1 errors) ====
|
|
declare var v;
|
|
declare namespace M {
|
|
export class D {
|
|
public p;
|
|
}
|
|
export class C {
|
|
public f();
|
|
public g() { } // error body
|
|
~
|
|
!!! error TS1183: An implementation cannot be declared in ambient contexts.
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|