Files
kotlin-fork/j2k/testData/fileOrElement/issues/kt-1048.kt
T

18 lines
375 B
Kotlin
Vendored

// ERROR: Not enough information to infer type variable K
// ERROR: Not enough information to infer type variable K
import java.util.HashMap
internal class G<T : String>(t: T)
class Java {
internal fun test() {
val m = HashMap()
m.put(1, 1)
}
internal fun test2() {
val m = HashMap()
val g = G("")
val g2 = G("")
}
}