[FIR2IR] Properly handle callable references to static functions

This commit is contained in:
Dmitriy Novozhilov
2021-03-25 11:38:28 +03:00
parent 37db27da58
commit 38ab37d7eb
4 changed files with 25 additions and 1 deletions
@@ -0,0 +1,12 @@
// TARGET_BACKEND: JVM_IR
// FULL_JDK
// WITH_STDLIB
import java.nio.file.Files
import java.nio.file.Path
fun test(path: Path): Path? {
return path.takeIf(Files::exists)
}
fun box() = "OK"