Make protected static visibility reach members in the same package

This commit is contained in:
Alexander Udalov
2014-06-16 17:46:10 +04:00
parent 80b7f88c60
commit e31f2cfa23
3 changed files with 29 additions and 0 deletions
@@ -0,0 +1,20 @@
// FILE: test/JavaClass.java
package test;
public class JavaClass {
protected static int field;
protected static String method() {
return "";
}
}
// FILE: test.kt
package test
fun test() {
JavaClass.field
JavaClass.method()
}