mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
505 B
TypeScript
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; }
|
|
};
|