mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
extension.ts(10,18): error TS2300: Duplicate identifier 'C'.
|
|
extension.ts(16,5): error TS1128: Declaration or statement expected.
|
|
extension.ts(16,12): error TS1434: Unexpected keyword or identifier.
|
|
extension.ts(16,12): error TS2304: Cannot find name 'extension'.
|
|
extension.ts(16,28): error TS2300: Duplicate identifier 'C'.
|
|
extension.ts(22,3): error TS2339: Property 'pe' does not exist on type 'C'.
|
|
|
|
|
|
==== extension.ts (6 errors) ====
|
|
interface I {
|
|
x;
|
|
}
|
|
|
|
interface I {
|
|
y;
|
|
}
|
|
|
|
declare namespace M {
|
|
export class C {
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'C'.
|
|
public p:number;
|
|
}
|
|
}
|
|
|
|
declare namespace M {
|
|
export extension class C {
|
|
~~~~~~
|
|
!!! error TS1128: Declaration or statement expected.
|
|
~~~~~~~~~
|
|
!!! error TS1434: Unexpected keyword or identifier.
|
|
~~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'extension'.
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'C'.
|
|
public pe:string;
|
|
}
|
|
}
|
|
|
|
var c=new M.C();
|
|
c.pe;
|
|
~~
|
|
!!! error TS2339: Property 'pe' does not exist on type 'C'.
|
|
c.p;
|
|
declare var i:I;
|
|
i.x;
|
|
i.y;
|
|
|
|
|