mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
396 B
Java
13 lines
396 B
Java
package test;
|
|
|
|
import jet.runtime.typeinfo.KotlinSignature;
|
|
import org.jetbrains.jet.jvm.compiler.annotation.ExpectLoadError;
|
|
|
|
public class AddingNullability {
|
|
@ExpectLoadError("Auto type 'jet.Int' is not-null, while type in alternative signature is nullable: 'Int?'")
|
|
@KotlinSignature("fun foo() : Int?")
|
|
public int foo() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
}
|