// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
// WITH_STDLIB

// CHECK_BYTECODE_TEXT
// 1 java/lang/invoke/LambdaMetafactory

// FILE: multifileClassMemberFromStdlib.kt

fun test(a: List<String>, b: List<String>, bf: BF) =
    bf.apply(a, b)

fun box(): String {
    val ss = test(listOf("O"), listOf("K"), List<String>::plus)
    return ss[0] + ss[1]
}

// FILE: BF.java
import java.util.*;

public interface BF {
    List<String> apply(List<String> a, List<String> b);
}
