mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
1) Add Java use sites which are similar to Kotlin use sites; 2) Use the new test format: separated Java and Kotlin sources (Java declarations + use sites and Kotlin corresponding use sites), Java declarations + use sites will be a sharable test suite; 3) Remove any dependencies from Java sources except `Object` and jspecify annotations; 4) Introduce a new test runner which compiles Java and Kotlin sources together and dumps all descriptors.
16 lines
834 B
Java
Vendored
16 lines
834 B
Java
Vendored
import org.jspecify.annotations.*;
|
|
|
|
public class WildcardsWithDefaultA<T extends Object, E extends @Nullable Object, F extends @NullnessUnspecified Object> {
|
|
public static void main(
|
|
WildcardsWithDefaultA<Object, Object, Object> aNullUnspecNullUnspecNullUnspec,
|
|
WildcardsWithDefaultA<Object, Object, @Nullable Object> aNullUnspecNullUnspecNull,
|
|
WildcardsWithDefaultA<Object, @Nullable Object, Object> aNullUnspecNullNullUnspec,
|
|
WildcardsWithDefaultA<Object, @Nullable Object, @Nullable Object> aNullUnspecNullNull,
|
|
WildcardsWithDefaultB b
|
|
) {
|
|
b.noBoundsNotNull(aNullUnspecNullUnspecNullUnspec);
|
|
b.noBoundsNotNull(aNullUnspecNullUnspecNull);
|
|
b.noBoundsNotNull(aNullUnspecNullNullUnspec);
|
|
b.noBoundsNotNull(aNullUnspecNullNull);
|
|
}
|
|
} |