Files
kotlin/compiler/testData/loadJava/compiledJavaCompareWithKotlin/ClassWithConstVal.kt
Pavel V. Talanov b3898cfb0d Force the user of AstAccessControl to write at least one test violating restriction, implement such tests for existing tests
This is needed because the slightest change in the test setup can make the check useless without the client knowing
The solution is ugly but gives at least some protection against this
2014-05-21 15:40:29 +04:00

7 lines
125 B
Kotlin

package test
public class ClassWithConstVal() : java.lang.Object() {
public val f: Int = 1
public val f2: Int = f
}