Or it’s an inspection bug in IDEA?
For example:
class Foo {
val foo = 1
}
@Service
class Bar(private val foo: Foo) {
init {
print(foo.foo) // IDEA says "Accessing non-final property foo in constructor"
}
}
How is that possible? You cannot make a property both private and open. Or you can?