We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a < (b >= c ...)
Playground link with relevant code
"use strict"; const enum MyVer { v1 = 1, v2 = 2 } let ver = 21 const a = ver < (MyVer.v1 >= MyVer.v2 ? MyVer.v1 : MyVer.v2)
It reports error TS1005:
error TS1005
R:/working/a.ts:4:27 - error TS1005: ')' expected. 4 const a = ver < (MyVer.v1 >= MyVer.v2 ? MyVer.v1 : MyVer.v2) ~ R:/working/a.ts:4:60 - error TS1005: ',' expected. 4 const a = ver < (MyVer.v1 >= MyVer.v2 ? MyVer.v1 : MyVer.v2) ~ Found 2 errors in the same file, starting at: R:/working/a.ts:4
The part between ( and ) should be parsed as an operand of <.
(
)
<
The text was updated successfully, but these errors were encountered:
Most likely another side-effect from #47607.
Sorry, something went wrong.
>
ahejlsberg
Successfully merging a pull request may close this issue.
Bug Report
π Search Terms
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
It reports
error TS1005
:π Expected behavior
The part between
(
and)
should be parsed as an operand of<
.The text was updated successfully, but these errors were encountered: