mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
20 lines
222 B
Kotlin
Vendored
20 lines
222 B
Kotlin
Vendored
// FILE: D.java
|
|
|
|
public class D {
|
|
public final String result = "OK";
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
// KT-4878
|
|
|
|
interface T {
|
|
fun Int.foo(d: D) = d.result!!
|
|
}
|
|
|
|
class A : T {
|
|
fun bar() = 42.foo(D())
|
|
}
|
|
|
|
fun box() = A().bar()
|