Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0c8f3faeecbeecb0d1430ef2b86dd192a029711c
/
.
/
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"