mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
8 lines
192 B
Kotlin
8 lines
192 B
Kotlin
class SomeClass { class object }
|
|
|
|
fun box() =
|
|
if ((SomeClass.toString() as java.lang.String).matches("SomeClass\\\$object@[0-9a-fA-F]+"))
|
|
"OK"
|
|
else
|
|
"Fail: $SomeClass"
|