diff options
author | Paul Phillips <paulp@improving.org> | 2013-10-02 12:42:45 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-10-02 12:42:45 -0700 |
commit | 8aae23ed47c4e38a465ff3373392484ca82473d1 (patch) | |
tree | fda8b628ae8501a8df945aeb7f558f259c857e62 /test/files | |
parent | bef9e52d7337dafcc1f507ff1d93241f12f7c6d9 (diff) | |
parent | aced32d05c97651534f468bc9a475ea5f6ae75b8 (diff) | |
download | scala-8aae23ed47c4e38a465ff3373392484ca82473d1.tar.gz scala-8aae23ed47c4e38a465ff3373392484ca82473d1.tar.bz2 scala-8aae23ed47c4e38a465ff3373392484ca82473d1.zip |
Merge pull request #3004 from paulp/pr/remove-unused
Remove unused code.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/repl-power.check | 10 | ||||
-rw-r--r-- | test/files/run/repl-power.scala | 2 |
2 files changed, 4 insertions, 8 deletions
diff --git a/test/files/run/repl-power.check b/test/files/run/repl-power.check index c1992e89aa..e56901e0f2 100644 --- a/test/files/run/repl-power.check +++ b/test/files/run/repl-power.check @@ -21,14 +21,10 @@ tp: $r.global.Type = Array[scala.util.Random] scala> tp.memberType(Array_apply) // evidence res1: $r.global.Type = (i: Int)scala.util.Random -scala> val m = LIT(10) MATCH (CASE(LIT(5)) ==> FALSE, DEFAULT ==> TRUE) // treedsl -m: $r.treedsl.global.Match = -10 match { - case 5 => false - case _ => true -} +scala> val m = LIT(10) // treedsl +m: $r.treedsl.global.Literal = 10 scala> typed(m).tpe // typed is in scope -res2: $r.treedsl.global.Type = Boolean +res2: $r.treedsl.global.Type = Int(10) scala> diff --git a/test/files/run/repl-power.scala b/test/files/run/repl-power.scala index f7c88c63ff..4dfeb37885 100644 --- a/test/files/run/repl-power.scala +++ b/test/files/run/repl-power.scala @@ -7,7 +7,7 @@ object Test extends ReplTest { global.emptyValDef // "it is imported twice in the same scope by ..." val tp = ArrayClass[scala.util.Random] // magic with tags tp.memberType(Array_apply) // evidence -val m = LIT(10) MATCH (CASE(LIT(5)) ==> FALSE, DEFAULT ==> TRUE) // treedsl +val m = LIT(10) // treedsl typed(m).tpe // typed is in scope """.trim } |