javac-wrapper: constant evaluator

This commit is contained in:
baratynskiy
2017-08-03 16:21:49 +03:00
committed by Alexander Baratynskiy
parent 4f180e1292
commit 1b0d7ff5be
40 changed files with 910 additions and 322 deletions
@@ -0,0 +1,27 @@
// FILE: a/X.java
package a;
public interface X {
int I = 42;
interface Y extends X {
int O = I;
class XY implements X, Y {
public static final int I = O + X.I;
public class XYZ extends XY implements Y {
int O = I;
}
}
}
class C {
public static final double Pi = 3.14;
interface I {
double Pi = 41.3;
class Z {
public static final double CONST = Pi;
}
}
}
}