Report warnings or errors for violated type parameter's upper bounds from Java annotated with nullability annotations
^KT-43262 Fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// FULL_JDK
|
||||
|
||||
// FILE: MapLike.java
|
||||
import java.util.Map;
|
||||
|
||||
public interface MapLike<@org.jetbrains.annotations.NotNull K, V> {
|
||||
void putAll(Map<K, V> map);
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
fun test(map : MapLike<Int?, Int>) {}
|
||||
Reference in New Issue
Block a user