Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
boxInline
/
enum
/
valueOf.kt
blob: 5a9f242016364732966e7e722d312ee9398d36a9 [
file
]
// FILE: 1.kt
// WITH_RUNTIME
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
>()
}