-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
TypeScript Version: 3.7.x-dev.201xxxxx
Search Terms: Optional chaining, argument default this
Code
class Test {
public c(a = this.a?.b) {}
}
Expected behavior:
Shouldn't throw reference error
Actual behavior:
Throws reference error for _a
c(a = (_a = this.a) === null || _a === void 0 ? void 0 : _a.b) {
var _a;
}
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created