Setup overridability rules for properties built on Java fields

- They overrides each other
- They do not overrides Kotlin propeties and vice versa
This commit is contained in:
Denis Zharkov
2015-10-02 16:17:40 +03:00
parent dfe93406d9
commit a02b64f0e3
9 changed files with 182 additions and 0 deletions
@@ -0,0 +1,17 @@
// FILE: A.java
public class A {
public int size = 1;
}
// FILE: B.java
public class B implements A {
public int size = 1;
}
// FILE: main.kt
fun foo() {
B().size
}