mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 02:10:40 +02:00
19 lines
537 B
Java
19 lines
537 B
Java
|
|
/**
|
|
* @testcase PR#715 PUREJAVA incrementing objects, arrays
|
|
*/
|
|
public class ArrayInc2CE {
|
|
|
|
public void testObjectIncrementingCE() {
|
|
boolean b;
|
|
int i = 0;
|
|
Object object = new Object();
|
|
int[] ra = new int[]{};
|
|
++ra; // CE prefix ++ cannot be applied to int[]
|
|
++object; // CE prefix ++ cannot be applied to Object
|
|
ra++; // CE postfix ++ cannot be applied to int[]
|
|
object++; // CE postfix ++ cannot be applied to Object
|
|
}
|
|
}
|
|
|