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:
Dmitry Savvinov
2018-07-06 13:23:10 +03:00
committed by Dmitry Savvinov
parent 63202fe560
commit 76c651421b
45 changed files with 1206 additions and 55 deletions
+10
View File
@@ -0,0 +1,10 @@
open class Base {
companion object : Java()
}
class Derived : Base() {
fun test() {
val x = <selection>Java.field</selection>;
val y = <selection>Java.method()</selection>;
}
}