blob: 10a8c2c8efd61204a844516630d0605715f470fe [file]
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// 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"