この行により、コンパイル エラーが発生します。
astgen.typeError.foreach(System.err.println)
typeError は、オブジェクト astgen 内の文字列の scala.collection.immutable.List です。
私が得ているエラーは次のとおりです。
error: ambiguous reference to overloaded definition,
both method println in class PrintStream of type (java.lang.String)Unit
and method println in class PrintStream of type (Array[Char])Unit
match expected type (Nothing) => Unit
astgen.typeError.foreach(System.err.println)
私は Scala を初めて使用し、問題を理解していません。2.7.7final を使用。