Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fe0f055c5c4e6ededc6378ef6df3f28ee841978
/
.
/
compiler
/
testData
/
codegen
/
box
/
enum
/
declaringClassOnEnumObject.kt
blob: fe432994f4801bf955e2d4d0360bc75c0ba67fdc [
file
]
// TARGET_BACKEND: JVM
package
test
enum
class
KEnum
{
A
}
fun test
(
e
:
KEnum
):
String
{
return
e
.
declaringClass
.
toString
()
}
fun box
():
String
{
val result
=
test
(
KEnum
.
A
)
return
if
(
result
==
"class test.KEnum"
)
"OK"
else
"fail: $result"
}