Hi, there is unclear error `Cannot access 'm': it...
# announcements
s
Hi, there is unclear error
Cannot access 'm': it is protected in 'Abstr'
In the following code:
Copy code
abstract class Abstr{
    protected abstract fun m()
}

class Child : Abstr(){
    private val subChild: Abstr = Child()

    override fun m() = subChild.m()// Error:(12, 18) Kotlin: Cannot access 'm': it is protected in 'Abstr'
}
Is it a bug? The question also was asked here: https://stackoverflow.com/questions/47015707/kotlin-cannot-access-protected-abstract-method/