Change default upper bound of Java type parameters to Any!
#KT-7672 Fixed
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K, V>() Please specify it explicitly.
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : kotlin.Any!, V : kotlin.Any!>() Please specify it explicitly.
|
||||
package demo
|
||||
|
||||
import java.util.HashMap
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter E in constructor ArrayList<E>() Please specify it explicitly.
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter E in constructor ArrayList<E : kotlin.Any!>() Please specify it explicitly.
|
||||
package demo
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
Reference in New Issue
Block a user