1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
21 lines
419 B
Kotlin
21 lines
419 B
Kotlin
fun box(): String {
|
|
val plusZero: Any = 0.0
|
|
val minusZero: Any = -0.0
|
|
if (plusZero is Double) {
|
|
when (plusZero) {
|
|
-0.0 -> {
|
|
}
|
|
else -> return "fail 1"
|
|
}
|
|
|
|
if (minusZero is Double) {
|
|
when (plusZero) {
|
|
minusZero -> {
|
|
}
|
|
else -> return "fail 2"
|
|
}
|
|
}
|
|
}
|
|
|
|
return "OK"
|
|
} |