Files
tsgo/testdata/baselines/reference/submodule/compiler/functionsInClassExpressions.js

27 lines
505 B
TypeScript

//// [tests/cases/compiler/functionsInClassExpressions.ts] ////
//// [functionsInClassExpressions.ts]
let Foo = class {
constructor() {
this.bar++;
}
bar = 0;
inc = () => {
this.bar++;
}
m() { return this.bar; }
}
//// [functionsInClassExpressions.js]
"use strict";
let Foo = class {
constructor() {
this.bar = 0;
this.inc = () => {
this.bar++;
};
this.bar++;
}
m() { return this.bar; }
};