Files
kotlin-fork/compiler/testData/diagnostics/tests/samConversions/SAMAfterSubstitutionKT.kt
T

18 lines
303 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: +SamConversionForKotlinFunctions
// FILE: Runnable.java
public interface Runnable {
void run();
}
// FILE: 1.kt
interface K<T> {
fun foo(t1: T, t2: T)
}
fun test(k: K<Runnable>, r: Runnable) {
k.foo(r, r)
k.foo(r, {})
k.foo({}, r)
k.foo({}, {})
}