Files
kotlin-fork/compiler/testData/loadJavaCustom/kotlinSignature/TwoSuperclassesVarargAndNot.java
T
Evgeny Gerashchenko dd671313c5 Supported propagation of vararg mark.
#KT-2776 in progress
2012-11-28 15:08:56 +04:00

26 lines
823 B
Java

package test;
import org.jetbrains.annotations.NotNull;
import java.lang.String;
import java.util.List;
import jet.runtime.typeinfo.KotlinSignature;
import org.jetbrains.jet.jvm.compiler.annotation.ExpectLoadError;
public interface TwoSuperclassesVarargAndNot {
public interface Super1 {
void foo(String... s);
}
public interface Super2 {
void foo(String[] s);
}
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?>?]")
void foo(String[] s);
}
}