package test; import jet.runtime.typeinfo.KotlinSignature; import org.jetbrains.jet.jvm.compiler.annotation.ExpectLoadError; public class MissingUpperBound { @ExpectLoadError("Upper bound #1 for type parameter A is missing") @KotlinSignature("fun foo() : String") public String foo() { throw new UnsupportedOperationException(); } }