Disabling @KotlinSignature checks in PLATFORM_TYPES mode

This commit is contained in:
Andrey Breslav
2014-09-10 18:21:38 +04:00
parent ea3215b361
commit d25a76e044
29 changed files with 34 additions and 32 deletions
@@ -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();
}
}
@@ -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();
}
@@ -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);
}
}