TypeScript/tests/baselines/reference/propertyOrdering2.js
2014-07-12 17:30:19 -07:00

22 lines
377 B
TypeScript

//// [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;
})();