// RUN_PIPELINE_TILL: BACKEND
// 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({}, {})
}

/* GENERATED_FIR_TAGS: functionDeclaration, interfaceDeclaration, javaType, lambdaLiteral, nullableType, samConversion,
typeParameter */
