14 lines
322 B
Kotlin
Vendored
14 lines
322 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
// WITH_RUNTIME
|
|
|
|
fun box(): String {
|
|
var x = 42
|
|
val k = (x++)::class.java
|
|
if (k != Int::class.java) return "Fail 1: $k"
|
|
if (x != 43) return "Fail 2: $x (side effect should have taken place)"
|
|
|
|
return "OK"
|
|
}
|