mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Move test-related code to org.jetbrains.kotlin.test, also move some tests to packages with better names
23 lines
684 B
Java
23 lines
684 B
Java
package test;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
import jet.runtime.typeinfo.KotlinSignature;
|
|
import org.jetbrains.kotlin.jvm.compiler.annotation.ExpectLoadError;
|
|
import java.util.*;
|
|
|
|
public interface ReadOnlyToMutable {
|
|
|
|
public interface Super {
|
|
@KotlinSignature("fun foo(p: List<String>)")
|
|
void foo(List<String> p);
|
|
|
|
void dummy(); // to avoid loading as SAM interface
|
|
}
|
|
|
|
public interface Sub extends Super {
|
|
//@ExpectLoadError("Parameter type changed for method which overrides another: MutableList<String>, was: List<String>")
|
|
@KotlinSignature("fun foo(p: MutableList<String>)")
|
|
void foo(List<String> p);
|
|
}
|
|
}
|