mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
- Inline protected constants from Java at use sites - Do not create accessors for private constants in Kotlin #KT-11734 In Progress
23 lines
293 B
Kotlin
Vendored
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 |