Fix VerifyError for enum constructor with default arguments
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
annotation class A(val a: Int = 0)
|
||||
|
||||
A fun test1() = 1
|
||||
A(2) fun test2() = 1
|
||||
|
||||
fun box(): String {
|
||||
if ((test1() + test2()) == 2) {
|
||||
return "OK"
|
||||
}
|
||||
return "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user