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