Files
kotlin/compiler/testData/codegen/bytecodeText/noInlineJavaProtectedConstants.kt
Mikhail Zarechenskiy 8c1e165f18 Skip property accessors for constants
- Inline protected constants from Java at use sites
 - Do not create accessors for private constants in Kotlin

 #KT-11734 In Progress
2016-12-05 22:10:14 +03:00

23 lines
293 B
Kotlin
Vendored

// LANGUAGE_VERSION: 1.0
// 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