KT-5482 Redundant type arguments are not detected in some cases

#KT-5482 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-06-03 21:28:47 +03:00
parent 9802931a90
commit f14615315d
7 changed files with 44 additions and 5 deletions
@@ -1,13 +1,13 @@
package demo
class Map {
fun <K, V> put(k: K, v: V) {
fun <K, V> put(k: K?, v: V) {
}
}
class U {
fun test() {
val m = Map()
m.put<String, Int>("10", 10)
m.put<String, Int>(null, 10)
}
}