Files
kotlin/compiler/testData/codegen/bytecodeText/noInlineJavaProtectedConstants.kt
2018-12-21 16:20:45 +01:00

25 lines
326 B
Kotlin
Vendored

// !LANGUAGE: -InlineConstVals
// IGNORE_BACKEND: JVM_IR
// FILE: first/Foo.java
package first;
public class Foo {
protected static final int FOO = 42;
}
// FILE: bar.kt
package second
import first.Foo
class Bar : Foo() {
fun bar() = FOO
}
// @second/BarKt.class
// 1 INVOKESTATIC
// 0 GETSTATIC
// 1 BIPUSH 42