ceylon/ceylon-compiler — Issue #320: Using this.field++ as a value or as parameter fails
Author: quintesse
Created: 2012-01-10 13:30:22+00:00
State: open

See lines 71 and 75 of the test `IntegerBoxing` to see the problem reproduced.

this.attrInteger := this.attrInteger++;
test(this.attrInteger++);

will return:

/IntegerBoxing.ceylon:71: setAttrInteger(long) in com.redhat.ceylon.compiler.java.test.expression.boxing.IntegerBoxing cannot be applied to (ceylon.language.Integer)
this.attrInteger := this.attrInteger++;
^
IntegerBoxing.ceylon:75: test(long) in com.redhat.ceylon.compiler.java.test.expression.boxing.IntegerBoxing cannot be applied to (ceylon.language.Integer)
test(this.attrInteger++);