range : number -> number -> number -> Bool
range start stop step =
start + step > stop
causes this error on 0.18:
Detected errors in 1 module.
-- TYPE MISMATCH ---------------------------------------------------------------
The left argument of (>) is causing a type mismatch.
4| start + step > stop
^^^^^^^^^^^^
(>) is expecting the left argument to be a:
comparable
But the left argument is:
number
Hint: Only ints, floats, chars, strings, lists, and tuples are comparable.
I would expect any number to be automatically comparable, so this error seems confusing.
This code:
causes this error on 0.18:
I would expect any number to be automatically comparable, so this error seems confusing.