Check absence of explicit initializer in field annotation

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