[FIR] Fix sources of intersection override properties's accessors

^KT-66046
This commit is contained in:
Nikolay Lunyak
2024-03-06 13:02:07 +02:00
committed by Space Team
parent daa6e03e3b
commit b7926b68ab
3 changed files with 14 additions and 8 deletions
@@ -2,14 +2,14 @@
abstract class I1 {
abstract var a: Int
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>protected<!> set
protected set
}
interface I2 {
var a: Int
}
abstract class C : I1(), I2
abstract class <!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>C<!> : I1(), I2
abstract class I3 {
protected abstract fun foo(): Int
@@ -2,14 +2,14 @@
open class A1 {
var a: Int = 10
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>protected<!> set
protected set
}
interface I1 {
var a: Int
}
abstract class B1 : A1(), I1
abstract class <!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>B1<!> : A1(), I1
open class A2 {
protected fun foo(): Int = 10