Store receiver parameter in JVM intrinsics map

To differentiate between "String?.plus" extension in builtins and
"Iterable<*>.plus" extension in stdlib (they have the same owner, name and
value parameter count)
This commit is contained in:
Alexander Udalov
2014-02-26 22:03:12 +04:00
parent 9bf51f630d
commit b3a9721571
4 changed files with 53 additions and 10 deletions

View File

@@ -0,0 +1,8 @@
import java.util.ArrayList
fun box(): String {
var x: MutableCollection<Int> = ArrayList()
x + ArrayList()
x += ArrayList()
return "OK"
}