mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Minor, get rid of SAMs in some loadJava tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user