blob: bc2e6a0db629d10c4c688cc6071abe1f14608060 [file]
// ISSUE: KT-72391
// IGNORE_KLIB_BACKEND_ERRORS_WITH_CUSTOM_FIRST_STAGE: JS:1.9,2.0,2.1,2.2.0
// ^^^ KT-72391 fixed in 2.2.20-Beta1
fun multiply(a: Int, b: Long?): Double {
if (b == null) {
return 0.0
}
return a * b * 10.0
}
fun box(): String {
val result = multiply(5, 6)
if (result == 300.0) return "OK"
return result.toString()
}