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?)") 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, Array?]|" + "Incompatible super methods: some have vararg parameter, some have not|") void foo(String[] s); } }