-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Closed
Copy link
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
I am testing out the lastest ECMA private fields. I get an error when importHelpers
enabled:
This syntax requires an imported helper named '__classPrivateFieldGet' which does not exist in 'tslib'. Consider upgrading your version of 'tslib'.ts(2343)
I'm not sure if there's pending work on the tslib, so I'm repoting this anyway.
TypeScript Version: 3.8.1-rc
TS Lib Version: 1.1.0
Search Terms:
tslib classPrivateFieldGet
Code
class A {
#a: number
constructor() {
this.#a = 1
}
}
Expected behavior:
This should compile
Actual behavior:
Shows an error on tslib
Playground Link:
Related Issues:
sidelong44, silversonicaxel, cedx, batopa, Shinigami92 and 9 more
Metadata
Metadata
Assignees
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone