D001 int_overflow
Checked Int arithmetic overflowed 64 bits.
A runtime defect: the running program stops with it; no compile phase reports it, and try cannot catch it. sakura explain D001 prints this explanation offline.
Checked Int arithmetic overflowed 64 bits. Defects are bugs, not errors: they are not in the
effect row and cannot be caught by try.
Runtime defects come from running programs, so compiler/tests/ui has no fixture for them; the explanation above names the repair.
Last updated
W8001 copy_on_write
A List, Map or Set update is proven to copy because the earlier version is still held (design §8.2, §17.172): read again after the update, captured by a closure or handler that is still live, or stored in a value that is still live.
D002 division_by_zero
/ or % was evaluated with a divisor of 0.