mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
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
29 lines
794 B
Plaintext
Vendored
29 lines
794 B
Plaintext
Vendored
package test
|
|
|
|
public/*package*/ open class Child : test.Parent1, test.Parent2 {
|
|
public/*package*/ constructor Child()
|
|
|
|
// Static members
|
|
public const final override /*1*/ /*fake_override*/ val a: kotlin.Int
|
|
public final var b: kotlin.String!
|
|
public final var c: kotlin.Int
|
|
public final var d: kotlin.String!
|
|
public const final override /*1*/ /*fake_override*/ val e: kotlin.Int
|
|
public open fun bar(): kotlin.Unit
|
|
public open fun baz(): kotlin.Unit
|
|
}
|
|
|
|
public/*package*/ interface Parent1 {
|
|
|
|
// Static members
|
|
public const final val a: kotlin.Int = 1
|
|
public const final val b: kotlin.Int = 2
|
|
}
|
|
|
|
public/*package*/ interface Parent2 {
|
|
|
|
// Static members
|
|
public const final val d: kotlin.Int = 1
|
|
public const final val e: kotlin.Int = 2
|
|
}
|