I have a generic class Field[T]. Now, I want to created and child class extends Field[T] with one more parameters. But I got compile error
class Field[T](val name: String, val label: String, val required: Boolean, val dataType: DataType[T])
class FK[T](override val name: String, override val label: String, override val required: Boolean, override val dataType: DataType[T], val ref: Type) extends Field[T]
Maybe I don't really understand Scala inheritance and generic. Please help me correct FK class.
Fields constructor anywhere.