12 lines
258 B
TypeScript
12 lines
258 B
TypeScript
|
// @target: esnext
|
||
|
// @useDefineForClassFields: true
|
||
|
|
||
|
// all are allowed with es-compliant class field emit
|
||
|
class Foo {
|
||
|
x = this
|
||
|
static t = this
|
||
|
static at = () => this
|
||
|
static ft = function () { return this }
|
||
|
static mt() { return this }
|
||
|
}
|