[FE 1.0] Support loading rxjava3 nullability annotations on bounded wildcards
^KT-53041 Fixed
This commit is contained in:
committed by
teamcity
parent
9f72193d57
commit
cb2dbca0c3
+27
@@ -0,0 +1,27 @@
|
||||
// FIR_IDENTICAL
|
||||
// JVM_TARGET: 1.8
|
||||
// NULLABILITY_ANNOTATIONS: @io.reactivex.rxjava3.annotations:strict
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
|
||||
// FILE: MyBiConsumer.java
|
||||
import io.reactivex.rxjava3.annotations.NonNull;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface MyBiConsumer<@NonNull T> {
|
||||
void accept(T t);
|
||||
}
|
||||
|
||||
// FILE: MyMaybe.java
|
||||
import io.reactivex.rxjava3.annotations.Nullable;
|
||||
|
||||
public class MyMaybe {
|
||||
public static void doOnEvent(MyBiConsumer<@Nullable ? super Throwable> onEvent) {
|
||||
onEvent.accept(null);
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
fun box(): String {
|
||||
MyMaybe.doOnEvent { _ -> }
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user