Disabling @KotlinSignature checks in PLATFORM_TYPES mode
This commit is contained in:
@@ -12,13 +12,10 @@ public interface ArraysInSubtypes {
|
||||
}
|
||||
|
||||
interface Sub<T> extends Super {
|
||||
@ExpectLoadError("Return type is not a subtype of overridden method. To fix it, add annotation with Kotlin signature to super method with type Array<CharSequence>? replaced with Array<out CharSequence>? in return type")
|
||||
String[] array();
|
||||
|
||||
@ExpectLoadError("Return type is not a subtype of overridden method. To fix it, add annotation with Kotlin signature to super method with type Array<CharSequence>? replaced with Array<out CharSequence>? in return type")
|
||||
List<? extends String[]> listOfArray();
|
||||
|
||||
@ExpectLoadError("Return type is not a subtype of overridden method. To fix it, add annotation with Kotlin signature to super method with type Array<Any>? replaced with Array<out Any>? in return type")
|
||||
T[] objArray();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -16,7 +16,7 @@ public interface TwoSuperclassesInconsistentGenericTypes {
|
||||
}
|
||||
|
||||
public class Sub implements TwoSuperclassesInconsistentGenericTypes, Other {
|
||||
@ExpectLoadError("Incompatible types in superclasses: [String?, String]")
|
||||
//@ExpectLoadError("Incompatible types in superclasses: [String?, String]")
|
||||
public List<String> foo() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
+3
-3
@@ -19,9 +19,9 @@ public interface TwoSuperclassesVarargAndNot {
|
||||
}
|
||||
|
||||
public interface Sub extends Super1, Super2 {
|
||||
@ExpectLoadError("Incompatible projection kinds in type arguments of super methods' return types: [String?, out String?]|" +
|
||||
"Incompatible super methods: some have vararg parameter, some have not|" +
|
||||
"Incompatible types in superclasses: [Array<String?>, Array<out String?>?]")
|
||||
@ExpectLoadError(//"Incompatible projection kinds in type arguments of super methods' return types: [String?, out String?]|" +
|
||||
//"Incompatible types in superclasses: [Array<String?>, Array<out String?>?]|" +
|
||||
"Incompatible super methods: some have vararg parameter, some have not|")
|
||||
void foo(String[] s);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user