KT-5482 Redundant type arguments are not detected in some cases
#KT-5482 Fixed
This commit is contained in:
@@ -8,6 +8,6 @@ class Map {
|
||||
class U {
|
||||
void test() {
|
||||
Map m = new Map();
|
||||
m.<String, int>put("10", 10);
|
||||
m.<String, int>put(null, 10);
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user