TypeScript/tests/baselines/reference/propertyOrdering2.js

22 lines
377 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [propertyOrdering2.ts]
class Foo {
constructor(public x, y) { }
foo() {
var a = this.x;
return this.y;
}
}
//// [propertyOrdering2.js]
var Foo = (function () {
function Foo(x, y) {
this.x = x;
}
Foo.prototype.foo = function () {
var a = this.x;
return this.y;
};
return Foo;
})();