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