Files
tsgo/testdata/baselines/reference/submodule/compiler/asyncArrowInClassES5(target=es2015).js

19 lines
461 B
TypeScript

//// [tests/cases/compiler/asyncArrowInClassES5.ts] ////
//// [asyncArrowInClassES5.ts]
// https://github.com/Microsoft/TypeScript/issues/16924
// Should capture `this`
class Test {
static member = async (x: string) => { };
}
//// [asyncArrowInClassES5.js]
"use strict";
// https://github.com/Microsoft/TypeScript/issues/16924
// Should capture `this`
class Test {
}
Test.member = (x) => __awaiter(void 0, void 0, void 0, function* () { });