Added @ExpectLoadErrors annotations to test data.
Also, fixed syntax error in AddNullabilitySameJavaType.
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
package test;
|
||||
|
||||
import jet.runtime.typeinfo.KotlinSignature;
|
||||
|
||||
import java.lang.String;
|
||||
import org.jetbrains.jet.jvm.compiler.annotation.ExpectLoadError;
|
||||
|
||||
public class WrongFieldMutability {
|
||||
@ExpectLoadError("Wrong mutability in annotation for field")
|
||||
@KotlinSignature("val fooNotFinal : String")
|
||||
public String fooNotFinal;
|
||||
|
||||
@ExpectLoadError("Wrong mutability in annotation for field")
|
||||
@KotlinSignature("var fooFinal : String")
|
||||
public final String fooFinal = "Test";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user