fixed exception in renderer for type inference error

This commit is contained in:
Svetlana Isakova
2012-10-16 17:28:24 +04:00
parent 73020fbebf
commit 0d4d576fed
4 changed files with 31 additions and 4 deletions
@@ -0,0 +1,11 @@
fun <K, V> testMutableMapEntry(<warning>map</warning>: MutableMap<K, V>, <warning>k1</warning>: K, <warning>v</warning>: V) {
}
fun foo() {
<error>testMutableMapEntry</error><error>(hashMap(1 to 'a'), 'b')</error>
}
//extract from library
fun <K, V> hashMap(<warning>p</warning>: Pair<K, V>): MutableMap<K, V> {<error>}</error>
fun <K, V> K.to(<warning>v</warning>: V): Pair<K, V> {<error>}</error>
data class Pair<K, V> {}