mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
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:
21
compiler/testData/loadJava/compiledJava/static/StaticMembersFromParentClassVisibility.txt
vendored
Normal file
21
compiler/testData/loadJava/compiledJava/static/StaticMembersFromParentClassVisibility.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package test
|
||||
|
||||
public/*package*/ open class Child : test.Parent {
|
||||
public/*package*/ constructor Child()
|
||||
|
||||
// Static members
|
||||
public/*package*/ final override /*1*/ /*fake_override*/ var packagePrivate_: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var private_: kotlin.Int
|
||||
protected/*protected static*/ final override /*1*/ /*fake_override*/ var protected_: kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ var public_: kotlin.Int
|
||||
}
|
||||
|
||||
public/*package*/ open class Parent {
|
||||
public/*package*/ constructor Parent()
|
||||
|
||||
// Static members
|
||||
public/*package*/ final var packagePrivate_: kotlin.Int
|
||||
private final var private_: kotlin.Int
|
||||
protected/*protected static*/ final var protected_: kotlin.Int
|
||||
public final var public_: kotlin.Int
|
||||
}
|
||||
Reference in New Issue
Block a user