Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
161333d3e7d13dd98386fe346a71a07eadfe4756
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
inlineClasses
/
resultMangling.kt
blob: 5f1ad8dfe2cf5cf9d50107747e466407458e5a27 [
file
]
// WITH_STDLIB
// FILE: test.kt
inline
class
A
(
val s
:
String
)
{
fun fromResult
(
x
:
Result
<
String
>)
=
x
.
getOrNull
()
?:
s
}
fun box
():
String
{
return
A
(
"Fail"
).
fromResult
(
Result
.
success
(
"OK"
))
}
// @TestKt.class:
// 1 INVOKESTATIC A.fromResult