diff options
Diffstat (limited to 'test/files/run/repl-backticks.scala')
-rw-r--r-- | test/files/run/repl-backticks.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/repl-backticks.scala b/test/files/run/repl-backticks.scala new file mode 100644 index 0000000000..94e34d1438 --- /dev/null +++ b/test/files/run/repl-backticks.scala @@ -0,0 +1,18 @@ +import scala.tools.nsc._ + +object Test { + val testCode = <code> + import java.lang.Thread.`yield` + import scala.`package`.Throwable + + `yield` + </code>.text + + def main(args: Array[String]) = { + val settings = new Settings() + settings.classpath.value = System.getProperty("java.class.path") + val repl = new Interpreter(settings) + repl.interpret(testCode) + } +} + |