We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af901ba commit 3d63401Copy full SHA for 3d63401
tests/baselines/reference/thisInClassBodyStaticESNext.js
@@ -11,10 +11,13 @@ class Foo {
11
12
//// [thisInClassBodyStaticESNext.js]
13
// all are allowed with es-compliant class field emit
14
-class Foo {
15
- x = this;
16
- static t = this;
17
- static at = () => this;
18
- static ft = function () { return this; };
19
- static mt() { return this; }
20
-}
+const Foo = /** @class */ (() => {
+ class Foo {
+ x = this;
+ static t = this;
+ static at = () => this;
+ static ft = function () { return this; };
+ static mt() { return this; }
21
+ }
22
+ return Foo;
23
+})();
0 commit comments