Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/kt1244.fir.kt
T
Kirill Rakhman 5186ba80e2 [FIR] Check for setter visibility in resolution stage
This is required for the following commit where candidates from the
original scope in presence of smart cast will not be ignored if they're
the same symbol.
2023-12-21 13:29:00 +00:00

14 lines
203 B
Kotlin
Vendored

//KT-1244 Frontend allows access to private members of other classes
package kt1244
class A {
private var a = ""
}
class B() {
init {
A().<!INVISIBLE_REFERENCE!>a<!> = "Hello"
}
}