kopia lustrzana
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 17:58:43 +02:00
19 wiersze
537 B
Java
19 wiersze
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
|
|
}
|
|
}
|
|
|