TypeScript/tests/cases/compiler/thisInClassBodyStaticESNext.ts

12 lines
258 B
TypeScript
Raw Normal View History

// @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 }
}