Add tests for publicField

This commit is contained in:
Yan Zhulanow
2015-06-25 16:39:31 +03:00
parent bffb24b075
commit 74f44dddb0
11 changed files with 107 additions and 0 deletions
@@ -0,0 +1,6 @@
public class Test {
public static String invokeMethodWithPublicField() {
C c = new C();
return c.foo;
}
}
@@ -0,0 +1,7 @@
class C {
@publicField private val foo: String = "OK"
}
fun box(): String {
return Test.invokeMethodWithPublicField()
}