Files
kotlin-fork/compiler/testData/diagnostics/tests/intersectedVisibilitiesForAbstractPropertyAccessors.kt
T
Nikolay Lunyak 7ecbaf7d1e [FIR] Calculate property setters visibilities for intersections properly
Basically, just calculate them the same
way it's done for other members.

`chooseIntersectionVisibilityForSymbolsOrNull`
is named like this to prevent a JVM clash.

^KT-66046 Fixed
2024-03-12 16:35:05 +00:00

24 lines
294 B
Kotlin
Vendored

// FIR_IDENTICAL
// ISSUE: KT-66046
abstract class I1 {
abstract var a: Int
protected set
}
interface I2 {
var a: Int
}
abstract class C : I1(), I2
abstract class I3 {
protected abstract fun foo(): Int
}
interface I4 {
fun foo(): Int
}
abstract class B : I3(), I4