TypeScript/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction11_es5.ts
2018-06-07 13:34:16 -07:00

10 lines
315 B
TypeScript

// @target: es5
// @lib: esnext, dom
// @downlevelIteration: true
// https://github.com/Microsoft/TypeScript/issues/24722
class A {
b = async (...args: any[]) => {
await Promise.resolve();
const obj = { ["a"]: () => this }; // computed property name after `await` triggers case
};
}