javac-wrapper: constant evaluator
This commit is contained in:
committed by
Alexander Baratynskiy
parent
4f180e1292
commit
1b0d7ff5be
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user