11a3482970
#KT-38632 Fixed
15 lines
418 B
Kotlin
Vendored
15 lines
418 B
Kotlin
Vendored
// ERROR: Type mismatch: inferred type is T? but T was expected
|
|
import java.util.*
|
|
|
|
internal class A<T> {
|
|
fun foo(
|
|
nonMutableCollection: Collection<String>,
|
|
mutableCollection: MutableCollection<String>,
|
|
mutableSet: MutableSet<T>,
|
|
mutableMap: MutableMap<String, T>
|
|
) {
|
|
mutableCollection.addAll(nonMutableCollection)
|
|
mutableSet.add(mutableMap.remove("a"))
|
|
}
|
|
}
|