Deprecate visibility of static members inherited from Java
Now they are not visible by short name through companion objects, just like classifiers in KT-21515 ^KT-25333 In progress
This commit is contained in:
committed by
Dmitry Savvinov
parent
63202fe560
commit
76c651421b
@@ -0,0 +1,13 @@
|
||||
import Java.field;
|
||||
import Java.method;
|
||||
|
||||
open class Base {
|
||||
companion object : Java()
|
||||
}
|
||||
|
||||
class Derived : Base() {
|
||||
fun test() {
|
||||
val x = field;
|
||||
val y = method();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user