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

18 lines
286 B
Kotlin
Vendored

// FIR_IDENTICAL
// FILE: J.java
public interface J<T> {
public void foo(T r1, T r2);
}
// FILE: Runnable.java
public interface Runnable {
void run();
}
// FILE: 1.kt
fun test(j: J<Runnable>, r: Runnable) {
j.foo(r, r)
j.foo(r, {})
j.foo({}, r)
j.foo({}, {})
}