package org.example; import org.jspecify.annotations.NotNull; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; @NullMarked class ConstructorTest { interface NullableExpectedLib { } static class NullableLibExpectedInArguments { NullableLibExpectedInArguments(NullableExpectedLib<@Nullable Object> l) { } } void test(NullableExpectedLib l) { new NullableLibExpectedInArguments(l); } static class NullableLibExpectedInArguments2 { NullableLibExpectedInArguments2(NullableExpectedLib l) { } } void test2(NullableExpectedLib l) { new NullableLibExpectedInArguments2<>(l); } }