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,26 @@
// FILE: test.kt
package a
const val CONST = "CONST"
open class Test {
companion object {
const val CONST = 42
}
}
// FILE: a/x.java
package a;
public class x {
public static final String CONST1 = TestKt.CONST;
public static final int CONST2 = Test.CONST;
public class y extends Test {
public static final int I = CONST;
}
}