12 lines
365 B
Kotlin
Vendored
12 lines
365 B
Kotlin
Vendored
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>() Please specify it explicitly.
|
|
package demo
|
|
|
|
import java.util.HashMap
|
|
|
|
internal class Test {
|
|
fun main() {
|
|
val commonMap = HashMap<String, Int>()
|
|
val rawMap = HashMap<String, Int>()
|
|
val superRawMap = HashMap()
|
|
}
|
|
} |