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
13 lines
146 B
Kotlin
13 lines
146 B
Kotlin
var result = "Fail"
|
|
|
|
class A
|
|
|
|
fun A.plusAssign(a: A, s: String = "OK") {
|
|
result = s
|
|
}
|
|
|
|
fun box(): String {
|
|
A() += A()
|
|
return result
|
|
}
|