overriddenDescriptors is empty for java static property and function declarations
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
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ public interface B : A {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public const final override /*1*/ val field: kotlin.String
|
||||
public const final val field: kotlin.String
|
||||
}
|
||||
|
||||
public open class E : A, B {
|
||||
@@ -38,5 +38,5 @@ public open class O : A, B {
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public final override /*2*/ var field: kotlin.Double
|
||||
public final var field: kotlin.Double
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user