mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
331 B
Kotlin
Vendored
14 lines
331 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TODO: Enable for JS when it supports Java class library.
|
|
// TARGET_BACKEND: JVM
|
|
|
|
package test
|
|
|
|
class SomeClass { companion object }
|
|
|
|
fun box() =
|
|
if ((SomeClass.toString() as java.lang.String).matches("test.SomeClass\\\$Companion@[0-9a-fA-F]+"))
|
|
"OK"
|
|
else
|
|
"Fail: $SomeClass"
|