On Tuesday, 26 April 2022 at 21:59:39 UTC, rikki cattermole wrote:

Putting an int into a ubyte absolutely should error, that is a lossy conversion and should not be automatic.

It's just VRP, here it works in 2.094
https://d.godbolt.org/z/vjq7xsMdn

because the compiler wasn't complaining I wouldn't know it was reliant on VRP (which is certainly an issue to be fixed).

Reply via email to