Can't compile internal constructor call cause:Primary constructor call expected
Assume we have the following primary and secondary constructors:
open class Animal(val name:String){
internal constructor(message:InputStream): this(readName(message))
}
Why is not possible to call the internal constructor of the super class?
class Dog(name:String):Animal(name){
internal constructor(message:InputStream):super(message)
^^^^^
Primary constructor call expected
}