mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Move test-related code to org.jetbrains.kotlin.test, also move some tests to packages with better names
13 lines
422 B
Java
13 lines
422 B
Java
package test;
|
|
|
|
import jet.runtime.typeinfo.KotlinSignature;
|
|
import org.jetbrains.kotlin.jvm.compiler.annotation.ExpectLoadError;
|
|
|
|
public class MissingUpperBound {
|
|
@ExpectLoadError("Upper bound number mismatch for A. Expected 2, but found 1")
|
|
@KotlinSignature("fun <A : Runnable> foo() : String")
|
|
public <A extends Runnable & Cloneable> String foo() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
}
|