5321dcb09f
* disallow 'await' and 'yield' in property and enum member initializer * accept baseline changes * Add a test for #34887 Ensures that this fixes #34887
8 lines
No EOL
156 B
TypeScript
8 lines
No EOL
156 B
TypeScript
// @target: ES2019
|
|
// @noTypesAndSymbols: true
|
|
async function* test(x: Promise<number>) {
|
|
enum E {
|
|
foo = await x,
|
|
baz = yield 1,
|
|
}
|
|
} |