Remove KotlinSignature from tests, spec, delete tests with errors
This commit is contained in:
-1
@@ -1,7 +1,6 @@
|
||||
package test;
|
||||
|
||||
import java.util.List;
|
||||
import org.jetbrains.kotlin.jvm.compiler.annotation.ExpectLoadError;
|
||||
|
||||
public interface ArraysInSubtypes {
|
||||
interface Super {
|
||||
|
||||
-6
@@ -3,24 +3,18 @@ package test;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
import jet.runtime.typeinfo.KotlinSignature;
|
||||
import org.jetbrains.kotlin.jvm.compiler.annotation.ExpectLoadError;
|
||||
|
||||
public interface TwoSuperclassesInconsistentGenericTypes {
|
||||
@KotlinSignature("fun foo(): MutableList<String?>")
|
||||
List<String> foo();
|
||||
|
||||
void dummy(); // To make it not SAM
|
||||
|
||||
public interface Other {
|
||||
@KotlinSignature("fun foo(): MutableList<String>?")
|
||||
List<String> foo();
|
||||
|
||||
void dummy(); // To make it not SAM
|
||||
}
|
||||
|
||||
public class Sub implements TwoSuperclassesInconsistentGenericTypes, Other {
|
||||
//@ExpectLoadError("Incompatible types in superclasses: [String?, String]")
|
||||
public List<String> foo() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
Vendored
-31
@@ -1,31 +0,0 @@
|
||||
package test;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
|
||||
import jet.runtime.typeinfo.KotlinSignature;
|
||||
import org.jetbrains.kotlin.jvm.compiler.annotation.ExpectLoadError;
|
||||
|
||||
public interface TwoSuperclassesVarargAndNot {
|
||||
public interface Super1 {
|
||||
void foo(String... s);
|
||||
|
||||
void dummy(); // To make it not SAM
|
||||
}
|
||||
|
||||
public interface Super2 {
|
||||
@KotlinSignature("fun foo(s : Array<out String?>?)")
|
||||
void foo(String[] s);
|
||||
|
||||
void dummy(); // To make it not SAM
|
||||
}
|
||||
|
||||
public interface Sub extends Super1, Super2 {
|
||||
@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);
|
||||
}
|
||||
}
|
||||
Vendored
-19
@@ -1,19 +0,0 @@
|
||||
package test
|
||||
|
||||
public interface TwoSuperclassesVarargAndNot {
|
||||
|
||||
public interface Sub : test.TwoSuperclassesVarargAndNot.Super1, test.TwoSuperclassesVarargAndNot.Super2 {
|
||||
public abstract override /*2*/ /*fake_override*/ fun dummy(): kotlin.Unit
|
||||
public abstract override /*2*/ fun foo(/*0*/ p0: kotlin.Array<(out) kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
|
||||
public interface Super1 {
|
||||
public abstract fun dummy(): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ vararg p0: kotlin.String! /*kotlin.Array<(out) kotlin.String!>!*/): kotlin.Unit
|
||||
}
|
||||
|
||||
public interface Super2 {
|
||||
public abstract fun dummy(): kotlin.Unit
|
||||
public abstract fun foo(/*0*/ p0: kotlin.Array<(out) kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user