complete nested calls for array set expression correctly

This commit is contained in:
Svetlana Isakova
2013-03-20 17:18:10 +04:00
parent a8d7bb0daa
commit df230d36c2
3 changed files with 14 additions and 1 deletions
@@ -0,0 +1,8 @@
fun foo<T>(t: T) = t
fun test(map: MutableMap<Int, Int>, t: Int) {
map [t] = foo(t) // t was marked with black square
}
//from library
fun <K, V> MutableMap<K, V>.set(key : K, value : V) : V<!BASE_WITH_NULLABLE_UPPER_BOUND!>?<!> = this.put(key, value)