Possible parse error / possible unused_parens false positive (explicit return UFCS) #37765
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
This does not compile, because the open
<
is parsed as a comparison operator. Possibly, this is a bug, and it should be parsed as it is intended - opening a type scope. But I don't know.If the current parse is correct, adding parens should not produce an unused_parens error, because these parens are necessary to make it parse as intended. However, it does:
The text was updated successfully, but these errors were encountered: