21 lines
377 B
JavaScript
21 lines
377 B
JavaScript
//// [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;
|
|
})();
|