Join GitHub today
error causes subsequent spurious error about literal cast #35772
I've investigated this a bit. Apologies if I've understood something wrong, I'm still a total compiler noob :)
Looks like the reason this happens is when there's an error before the cast, the type inference of
In the working version
where in the version with the error it looks like this:
Why the types are resolved differently I have no idea.
EDIT: I dug around a bit more and I think I found the root cause. The reason was what @durka was anticipating,