Program with HRTB rejected with inexplicable error message #50301
Labels
A-inference
Area: Type inference
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
(Sorry about the non-informative title, I couldn't come up with a useful description.)
As discovered towards the end of this forum thread, the following code (playground) fails to compile:
I get the following error message:
Changing the definition of
Item
tou32
makes the program compile, but it seems like it should be accepted as it is.The text was updated successfully, but these errors were encountered: