TypeScript/tests/baselines/reference/propertyOrdering2.js
2015-12-08 17:51:10 -08: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;
}());