class U(successors:U*) {}
class V(successors:U*) extends U(successors) {}
第二行不编译。第二次出现后续任务时的类型不匹配。
U*
转换为 Seq[U]
。用
class V(successors: U*) extends U(successors:_*) {}