Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
fir
/
callableReferenceToStaticFunction.kt
blob: 72413d69046d8fb278e5bfc9f944b8338be6e994 [
file
]
// TARGET_BACKEND: JVM_IR
// 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"