trait Base { val name: String } case class S( name: String, age: Int ) extends Base case class F( name: String, tel: Long ) extends Base case class Info[T <: Base]( b: T, time: String ) object Test extends App { override def main(String args): Unit =…