blob: b7a3c5138aff63a88c6c53ea8668835c67810504 (
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 dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
tb.parse("def x = {}")
try { tb.parse("def x = {") } catch { case _: Throwable => }
tb.parse("def x = {}")
}
|