Fix default argument method calls
In some cases, calls of methods with default arguments were invoked via the actual generated method, not via the "...$default" accessor
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
var result = "Fail"
|
||||
|
||||
class A
|
||||
|
||||
fun A.plus(a: A, s: String = "OK"): A {
|
||||
result = s
|
||||
return this
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var a = A()
|
||||
a += A()
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user