SerGnat
10/30/2017, 1:49 PMCannot access 'm': it is protected in 'Abstr'
In the following 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/