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