12 lines
215 B
TypeScript
12 lines
215 B
TypeScript
|
function C(x: number) { }
|
||
|
|
||
|
module C {
|
||
|
export var x = 1;
|
||
|
}
|
||
|
module C {
|
||
|
export function foo() { }
|
||
|
}
|
||
|
|
||
|
var r = C(2);
|
||
|
var r2 = new C(2); // using void returning function as constructor
|
||
|
var r3 = C.foo();
|