Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
resolvedCalls
/
enhancedSignatures
/
optional
/
optionalIfPresent.kt
blob: 34557a3677b60112f8b5fd09e0164661024a240f [
file
]
import
java
.
util
.*
fun
use
(
v
:
Optional
<
String
>)
{
v
.<
caret
>
ifPresent
{
value
->
}
}
fun use2
(
v
:
Optional
<
String
?>)
{
v
.<
caret
>
ifPresent
{
value
->
}
}