Check type parameter bounds by java nullability annotations not only in basic resolution context
^KT-47920 Fixed
This commit is contained in:
committed by
teamcityserver
parent
20d50cfee7
commit
c5d783596d
@@ -0,0 +1,11 @@
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: J1.java
|
||||
import io.reactivex.rxjava3.annotations.*;
|
||||
|
||||
public class J1<@NonNull T> {}
|
||||
|
||||
// FILE: main.kt
|
||||
fun main() {
|
||||
J1<<!UPPER_BOUND_VIOLATED_BASED_ON_JAVA_ANNOTATIONS!>Any?<!>>() // violated nullability, no warnings; but there is an error with -Xtype-enhancement-improvements-strict-mode
|
||||
}
|
||||
Reference in New Issue
Block a user