Test 000908 reports the wrong error:
type i8 is (int x) where (x >= -128) && (x <= 127)
function f(int x) -> i8[]
requires (x == 0) || (x == 256):
return [(i8) x]
The error is:
src/main.whiley:5: postcondition may not be satisfied
return [(i8) x]
^^^^^^^^^^^^^^^
But it should be complaining about the cast.