2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
class Foo { // error
|
2014-07-13 01:04:16 +02:00
|
|
|
bar1() { /*WScript.Echo("bar1");*/ }
|
|
|
|
|
|
|
|
constructor(x: any) {
|
|
|
|
// WScript.Echo("Constructor function has executed");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
function Foo(); // error
|
2014-07-13 01:04:16 +02:00
|
|
|
|
2014-10-01 20:27:20 +02:00
|
|
|
function F1(s:string) {return s;} // error
|
2014-10-01 02:15:18 +02:00
|
|
|
function F1(a:any) { return a;} // error
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
function Goo(s:string); // error - no implementation
|
|
|
|
|
|
|
|
declare function Gar(s:String); // expect no error
|
|
|
|
|
|
|
|
var f1 = new Foo("hey");
|
|
|
|
|
|
|
|
|
|
|
|
f1.bar1();
|
|
|
|
Foo();
|