şunun yansıması
https://github.com/eclipse-aspectj/aspectj.git
eşitlendi 2024-08-26 17:58:43 +02:00
22 satır
444 B
Java
22 satır
444 B
Java
import org.aspectj.testing.*;
|
|
|
|
public class Const {
|
|
public static void main(String[] args) {
|
|
new Const().realMain(args);
|
|
}
|
|
|
|
public void realMain(String[] args) {
|
|
int const = 2;
|
|
int i = const * 2;
|
|
Tester.check(false, "shouldn't have compiled");
|
|
}
|
|
|
|
public static void testme1() {
|
|
int i = const + 1;
|
|
}
|
|
|
|
public static void testme2() {
|
|
int j = Const.const + 1;
|
|
}
|
|
}
|