ceylon/ceylon-compiler — Issue #283: ++ or -- on Ordinal<Integer>
Author: gavinking
Created: 2011-12-13 16:59:36+00:00
State: open

The following results in an error from `javac`:

variable Ordinal oi:=0;
oi++;
--oi;

/Users/gavin/ceylon.language/test/test.ceylon:9: incompatible types
found : ceylon.language.Ordinal
required: ceylon.language.Integer
oi++;
^

P.S. I've checked that the following compiles correctly:

variable Numeric ai:=0;
ai+=1;
ai:=ai+1;