mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
To differentiate between "String?.plus" extension in builtins and "Iterable<*>.plus" extension in stdlib (they have the same owner, name and value parameter count)
9 lines
155 B
Kotlin
9 lines
155 B
Kotlin
import java.util.ArrayList
|
|
|
|
fun box(): String {
|
|
var x: MutableCollection<Int> = ArrayList()
|
|
x + ArrayList()
|
|
x += ArrayList()
|
|
return "OK"
|
|
}
|