Files
kotlin-fork/compiler/testData/codegen/box/regressions/intersectionAsLastLambda.kt
T
2019-11-19 11:00:09 +03:00

24 lines
391 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// FILE: First.java
public class First<T> {
public static <K> First<K> first(K key) {
return null;
}
}
// FILE: second.kt
class Inv<T>(val key: T)
fun <T, R> lastLambda(x: T, block: (T) -> R): R = block(x)
fun <S> myTest(m: Inv<S>) {
lastLambda(m) { First.first(it.key) }
}
fun box(): String {
return "OK"
}