7d98103c0c
Fake overrides are still created for java static with non-empty overriddenDescriptors Add tests for inheriting visibility for java static members Add test: check that java static declarations that shadow deprecated declarations should not be deprecated Add test for corner case where "overriding" java static constant led to incorrect type in inheritor Fix test data for existing tests
24 lines
332 B
Kotlin
Vendored
24 lines
332 B
Kotlin
Vendored
// FILE: B.kt
|
|
|
|
import aa.B
|
|
|
|
fun use() {
|
|
// checking that CONST is of platform type
|
|
B.CONST = null
|
|
B.CONST?.length
|
|
B.CONST.length
|
|
}
|
|
|
|
// FILE: aa/A.java
|
|
package aa;
|
|
|
|
public class A {
|
|
public static int CONST = 3;
|
|
}
|
|
|
|
// FILE: aa/B.java
|
|
package aa;
|
|
|
|
public class B extends A {
|
|
public static String CONST = null;
|
|
} |