Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
e1e07d20949869a38f2fc0b6ceeea1235721f07f
/
.
/
compiler
/
testData
/
codegen
/
boxInline
/
enum
/
valueOf.kt
blob: f8f958a92ba434b4bb32983f4e60a443e952ee2f [
file
]
// IGNORE_BACKEND: WASM
// WITH_STDLIB
// FILE: 1.kt
package
test
inline
fun
<
reified X
:
Enum
<
X
>>
myValueOf
():
String
{
return
enumValueOf
<
X
>(
"OK"
).
name
}
enum
class
Z
{
OK
}
// FILE: 2.kt
import
test
.*
fun box
():
String
{
return
myValueOf
<
Z
>()
}