mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
20 lines
318 B
Kotlin
Vendored
20 lines
318 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
class A() {
|
|
|
|
override fun toString(): String {
|
|
return "A"
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
|
|
val s = "1" + "2" + 3 + 4L + 5.0 + 6F + '7' + A()
|
|
|
|
if (s != "12345.06.07A") return "fail $s"
|
|
|
|
return "OK"
|
|
}
|
|
|