Closed jwoertink closed 5 months ago
I've never seen that flag before, thanks for bringing it up.
It seems like there's just a default argument in JobRun#delete that needs a default type? Or perhaps another overload to #delete that takes an int32, which is probably what I'd do. Jockying between bit-sizes of numerics is one area where I wish Crystal would do the ruby thing and "just work" instead of the C thing and "make me work" 🤪
This might be sort of an edge case, but we have to use the
-Dno_number_autocast
because without it, Crystal will freely interchange Floats and Ints in typed arguments. For us, this caused some REALLY bad issues.When upgrading to Mosquito master branch to test things, everything fails. To recreate this, just update
https://github.com/mosquito-cr/mosquito/blob/0107dba08b18670832423f8e8d725b9b4f35db81/Makefile#L10-L11
and add in
-Dno_number_autocast
and you'll get this error when runningmake test
Crystal version: 1.12.1 Mosquito Shard version: master branch