Adjust test data for enabling ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated

^KT-55388 Fixed
This commit is contained in:
Denis.Zharkov
2023-05-11 14:39:43 +02:00
committed by Space Team
parent fa85cbfe74
commit c3ac2e44a0
82 changed files with 184 additions and 494 deletions
@@ -4,11 +4,11 @@ public interface TypeParamOfClass {
public interface Sub</*0*/ T : kotlin.Any!> : test.TypeParamOfClass.Super<T!> {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(): T
public abstract override /*1*/ fun foo(): T & Any
}
public interface Super</*0*/ T : kotlin.Any!> {
public abstract fun dummy(): kotlin.Unit
@org.jetbrains.annotations.NotNull public abstract fun foo(): T
@org.jetbrains.annotations.NotNull public abstract fun foo(): T & Any
}
}
@@ -9,6 +9,6 @@ public interface TypeParamOfClassSubstituted {
public interface Super</*0*/ T : kotlin.Any!> {
public abstract fun dummy(): kotlin.Unit
@org.jetbrains.annotations.NotNull public abstract fun foo(): T
@org.jetbrains.annotations.NotNull public abstract fun foo(): T & Any
}
}
@@ -4,11 +4,11 @@ public interface TypeParamOfFun {
public interface Sub : test.TypeParamOfFun.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun </*0*/ E : kotlin.Any!> foo(): E
public abstract override /*1*/ fun </*0*/ E : kotlin.Any!> foo(): E & Any
}
public interface Super {
public abstract fun dummy(): kotlin.Unit
@org.jetbrains.annotations.NotNull public abstract fun </*0*/ T : kotlin.Any!> foo(): T
@org.jetbrains.annotations.NotNull public abstract fun </*0*/ T : kotlin.Any!> foo(): T & Any
}
}