[FE 1.0] Support loading rxjava3 nullability annotations on bounded wildcards

^KT-53041 Fixed
This commit is contained in:
Victor Petukhov
2022-07-05 14:46:50 +02:00
committed by teamcity
parent 9f72193d57
commit cb2dbca0c3
12 changed files with 277 additions and 3 deletions
@@ -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"
}