mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
40 lines
424 B
TypeScript
40 lines
424 B
TypeScript
//// [tests/cases/compiler/extension.ts] ////
|
|
|
|
//// [extension.ts]
|
|
interface I {
|
|
x;
|
|
}
|
|
|
|
interface I {
|
|
y;
|
|
}
|
|
|
|
declare namespace M {
|
|
export class C {
|
|
public p:number;
|
|
}
|
|
}
|
|
|
|
declare namespace M {
|
|
export extension class C {
|
|
public pe:string;
|
|
}
|
|
}
|
|
|
|
var c=new M.C();
|
|
c.pe;
|
|
c.p;
|
|
declare var i:I;
|
|
i.x;
|
|
i.y;
|
|
|
|
|
|
|
|
//// [extension.js]
|
|
"use strict";
|
|
var c = new M.C();
|
|
c.pe;
|
|
c.p;
|
|
i.x;
|
|
i.y;
|