Fix isNullableType() to always consider flexible types, even if they contain type parameters

This commit is contained in:
Andrey Breslav
2014-09-02 18:19:28 +04:00
parent 107480657a
commit 1dbfe5483a
4 changed files with 39 additions and 8 deletions
@@ -0,0 +1,11 @@
import java.util.HashMap
fun <K: Any, V: Any> foo(k: K, v: V) {
val map = HashMap<K, V>()
val old = map.put(k, v)
}
fun box(): String {
foo("", "")
return "OK"
}