mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
155 B
Kotlin
Vendored
13 lines
155 B
Kotlin
Vendored
var result = "Fail"
|
|
|
|
class A
|
|
|
|
operator fun A.plusAssign(a: A, s: String = "OK") {
|
|
result = s
|
|
}
|
|
|
|
fun box(): String {
|
|
A() += A()
|
|
return result
|
|
}
|