TypeScript/tests/baselines/reference/classOrder1.js

25 lines
333 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [classOrder1.ts]
class A {
public foo() {
/*WScript.Echo("Here!");*/
}
}
var a = new A();
a.foo();
//// [classOrder1.js]
var A = (function () {
function A() {
}
A.prototype.foo = function () {
/*WScript.Echo("Here!");*/
2014-07-13 01:04:16 +02:00
};
return A;
})();
var a = new A();
a.foo();