blob: e499fc0b3267a0a8b2390078f050eba2f649a606 (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.{ToolBox, ToolBoxError}
object Test extends App {
val tb = cm.mkToolBox()
try tb.parse("f(x")
catch {
case ToolBoxError(msg, _) => println(msg)
}
}
|