W008

generated from midad spec --json at build time; not edited by hand

W008 warning

/ now yields a float, so this is not integer division

What to do

write idiv(a, b) for integer division; it floors, so idiv(-7, 2) is -4

From the binary

$ midad explain W008
W008 (warning)
  `/` now yields a float, so this is not integer division
  fix: write `idiv(a, b)` for integer division; it floors, so `idiv(-7, 2)` is -4

A message template can carry {} where the checker fills in the values it saw: the type it expected, the target it refused, the name it could not find.

On this page