diff options
author | Paul Phillips <paulp@improving.org> | 2010-12-12 03:31:40 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-12-12 03:31:40 +0000 |
commit | e61fb59b9db0f5d24fdffe760536c2e5431546f8 (patch) | |
tree | ca97573fac699ff815902b74f5e7cac778b2b8a2 /test/files/run | |
parent | 6c59d99c5e1efcd5dae0cd5fb7ecf4fe7cba7408 (diff) | |
download | scala-e61fb59b9db0f5d24fdffe760536c2e5431546f8.tar.gz scala-e61fb59b9db0f5d24fdffe760536c2e5431546f8.tar.bz2 scala-e61fb59b9db0f5d24fdffe760536c2e5431546f8.zip |
A little more finnesse needed with backquoting.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/repl-backticks.check | 2 | ||||
-rw-r--r-- | test/files/run/repl-backticks.scala | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/files/run/repl-backticks.check b/test/files/run/repl-backticks.check new file mode 100644 index 0000000000..c0561abd7c --- /dev/null +++ b/test/files/run/repl-backticks.check @@ -0,0 +1,2 @@ +import java.lang.Thread.`yield` +import scala.`package`.Throwable 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) + } +} + |