Fix VerifyError for enum constructor with default arguments
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
fun Int.foo(a: Int = 1, b: String): Int {
|
||||
return a
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
if (1.foo(b = "b") != 1) return "fail"
|
||||
if (1.foo(2, "b") != 2) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user