mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Fixes extra parens around yield downleveled from await
This commit is contained in:
@@ -4,7 +4,7 @@ function * foo(a = yield => yield) {
|
||||
|
||||
//// [FunctionDeclaration10_es6.js]
|
||||
function* foo(a) {
|
||||
if (a === void 0) { a = (yield); }
|
||||
if (a === void 0) { a = yield; }
|
||||
}
|
||||
yield;
|
||||
{
|
||||
|
||||
@@ -12,13 +12,13 @@ let C = class extends class extends class {
|
||||
this.a = 1;
|
||||
}
|
||||
} {
|
||||
constructor(...args_1) {
|
||||
super(...args_1);
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
this.b = 2;
|
||||
}
|
||||
} {
|
||||
constructor(...args_2) {
|
||||
super(...args_2);
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
this.c = 3;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user