diff options
author | Paul Phillips <paulp@improving.org> | 2011-05-31 05:08:53 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-05-31 05:08:53 +0000 |
commit | ad328ff2c016787b99300e397549d15dc2965ed3 (patch) | |
tree | b4e20bf571e17159d25cc4485ecc106980fb3e5a /test/files | |
parent | edad717cc1934d80dc0b6a9af528eed8ef4b30b6 (diff) | |
download | scala-ad328ff2c016787b99300e397549d15dc2965ed3.tar.gz scala-ad328ff2c016787b99300e397549d15dc2965ed3.tar.bz2 scala-ad328ff2c016787b99300e397549d15dc2965ed3.zip |
Cleaning up power mode import issues (and the a...
Cleaning up power mode import issues (and the amazing first power mode
test) no review.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/repl-power.check | 18 | ||||
-rw-r--r-- | test/files/run/repl-power.scala | 10 |
2 files changed, 28 insertions, 0 deletions
diff --git a/test/files/run/repl-power.check b/test/files/run/repl-power.check new file mode 100644 index 0000000000..249e0f71e8 --- /dev/null +++ b/test/files/run/repl-power.check @@ -0,0 +1,18 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> :power +** Power User mode enabled - BEEP BOOP WHIR ** +** scala.tools.nsc._ has been imported ** +** global._ and definitions._ also imported ** +** New vals! Try repl, intp, global, power ** +** New cmds! :help to discover them ** +** New defs! Type power.<tab> to reveal ** + +scala> +scala> // guarding against "error: reference to global is ambiguous" + +scala> global.emptyValDef // "it is imported twice in the same scope by ..." +res0: global.emptyValDef.type = private val _ = _ + +scala> diff --git a/test/files/run/repl-power.scala b/test/files/run/repl-power.scala new file mode 100644 index 0000000000..9f70ac4b68 --- /dev/null +++ b/test/files/run/repl-power.scala @@ -0,0 +1,10 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = """ +:power +// guarding against "error: reference to global is ambiguous" +global.emptyValDef // "it is imported twice in the same scope by ..." + """.trim +} + |