Do not overuse makeNullableAsSpecified in TypeSubstitutor
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// FILE: p/MultiMap.java
|
||||
|
||||
package p;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class MultiMap<K, V> {
|
||||
public Set<Collection<V>> entrySet() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: k.kt
|
||||
|
||||
import p.*
|
||||
|
||||
fun test() {
|
||||
val map = MultiMap<Int, String>()
|
||||
val set = map.entrySet()
|
||||
set.iterator()
|
||||
|
||||
val set1 = map.entrySet()!!
|
||||
set1.iterator()
|
||||
}
|
||||
Reference in New Issue
Block a user