Fix for KT-16581: VerifyError when calling default value parameter with jvm-target 1.8
#KT-16581 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
fun number(doLong: Boolean): Number = when {
|
||||
doLong -> 1.toLong()
|
||||
else -> 0
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
number(true)
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user