17 lines
299 B
TypeScript
17 lines
299 B
TypeScript
|
|
function Foo():Foo;
|
|
function Foo(s:string):Foo;
|
|
class Foo {
|
|
bar1() { /*WScript.Echo("bar1");*/ }
|
|
constructor(x: any) {
|
|
// WScript.Echo("Constructor function has executed");
|
|
}
|
|
}
|
|
//class Foo(s: String);
|
|
|
|
var f1 = new Foo("hey");
|
|
|
|
|
|
f1.bar1();
|
|
Foo();
|
|
Foo("s");
|