blob: 44a8be93f6d8d85cc826c2ec2f05b65a1878e7ed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect._
object Test extends App {
val tb = cm.mkToolBox()
tb.parse("def x = {}")
try { tb.parse("def x = {") } catch { case _ => }
tb.parse("def x = {}")
}
|