[FIR] Fix building callable reference adaptation against flexible types

#KT-45052 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-02-19 18:39:41 +03:00
parent 469252f6b4
commit cd8f597e2f
5 changed files with 49 additions and 2 deletions
@@ -0,0 +1,18 @@
// ISSUE: KT-45052
// FULL_JDK
// JVM_TARGET: 1.8
import java.io.File
import java.nio.file.Files
fun detectDirsWithTestsMapFileOnly(file: File): List<String> {
Files.walk(file.toPath()).filter(Files::isRegularFile)
}
interface A
fun foo(x: A, vararg strings: String) {}
fun takeFunWithA(func: (A) -> Unit) {}
fun test() {
takeFunWithA(::foo)
}