Test for syntax errors in field annotations

This commit is contained in:
Nikolay Krasko
2012-10-08 20:18:55 +04:00
parent 24fc3cc53f
commit 3a410064be
5 changed files with 33 additions and 0 deletions
@@ -0,0 +1,10 @@
package test;
import jet.runtime.typeinfo.KotlinSignature;
import java.lang.String;
public class SyntaxErrorInFieldAnnotation {
@KotlinSignature("var foo : ")
public String foo;
}
@@ -0,0 +1,7 @@
package test
import java.util.*
public open class SyntaxErrorInFieldAnnotation : Object() {
public var foo : String? = ""
}
@@ -0,0 +1,6 @@
namespace test
public open class test.SyntaxErrorInFieldAnnotation : java.lang.Object {
public final /*constructor*/ fun <init>(): test.SyntaxErrorInFieldAnnotation
public final var foo: jet.String?
}