Strange non-primitive cast error near erroneous code #43825
Labels
A-inference
Area: Type inference
A-type-system
Area: Type system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
tl;dr; If you comment out the
let error
line, all will compile, obviously.However, in presence of it, compiler complains
…which is strange and may mislead user in more complex situation. Looks like broken code affects type inference somehow. By the way, error will also appear, if you put erroneous line after the loop.
The text was updated successfully, but these errors were encountered: