2014-10-01 02:15:18 +02:00
|
|
|
function Foo():Foo; // error
|
|
|
|
function Foo(s:string):Foo; // error
|
|
|
|
class Foo { // error
|
2014-07-13 01:04:16 +02:00
|
|
|
bar1(s:string);
|
|
|
|
bar1(n:number);
|
|
|
|
bar1(a:any) { /*WScript.Echo(a);*/ }
|
|
|
|
constructor(x: any) {
|
|
|
|
// WScript.Echo("Constructor function has executed");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//class Foo(s: String);
|
|
|
|
|
|
|
|
var f1 = new Foo("hey");
|
|
|
|
|
|
|
|
|
|
|
|
f1.bar1("a");
|
|
|
|
Foo();
|
|
|
|
Foo("s");
|