scala.tools.nsc.typechecker.TypeDiagnostics
Returns Some(msg) if the given tree is untyped apparently due to a cyclic reference, and None otherwise.
Report a type error.
The exception that caused the error