Minor, get rid of SAMs in some loadJava tests

This commit is contained in:
Alexander Udalov
2014-10-30 11:10:35 +03:00
parent 66d27fad13
commit ae3c17d399
15 changed files with 66 additions and 40 deletions

View File

@@ -11,11 +11,15 @@ import org.jetbrains.jet.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 {
@@ -24,4 +28,4 @@ public interface TwoSuperclassesVarargAndNot {
"Incompatible super methods: some have vararg parameter, some have not|")
void foo(String[] s);
}
}
}