Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
HEAD
/
.
/
compiler
/
testData
/
codegen
/
boxJvm
/
fir
/
callableReferenceToStaticFunction.kt
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"