Files
kotlin-fork/j2k/testData/fileOrElement/issues/kt-1048.kt
T
Alexander Udalov 3c859caf2b j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
2015-01-03 00:52:59 +03:00

18 lines
515 B
Kotlin

// 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, V>() Please specify it explicitly.
import java.util.HashMap
class G<T : String>(t: T)
public class Java {
fun test() {
val m = HashMap()
m.put(1, 1)
}
fun test2() {
val m = HashMap()
val g = G("")
val g2 = G("")
}
}