Files
kotlin-fork/j2k/testData/fileOrElement/rawGenerics/kt-540-map.kt
T

12 lines
379 B
Kotlin
Vendored

// 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
internal class Test {
fun main() {
val commonMap = HashMap<String, Int>()
val rawMap = HashMap<String, Int>()
val superRawMap = HashMap()
}
}