mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
In some cases, calls of methods with default arguments were invoked via the actual generated method, not via the "...$default" accessor
15 lines
173 B
Kotlin
15 lines
173 B
Kotlin
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
|
|
}
|