mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
23 lines
263 B
Kotlin
Vendored
23 lines
263 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// FILE: test/D.java
|
|
|
|
package test;
|
|
|
|
public class D {
|
|
protected String field = "OK";
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
import test.D
|
|
|
|
class A : D() {
|
|
fun a(): String {
|
|
return {field!!}()
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return A().a()
|
|
}
|