summaryrefslogtreecommitdiff
path: root/test/files/run/enums.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-01-02 17:40:25 +0000
committerPaul Phillips <paulp@improving.org>2011-01-02 17:40:25 +0000
commit635bc9c17b0d35e9cf8029cf24aee8d3594a143f (patch)
tree7b7ca9282bd2c009f9c0e1c4c00ffb7eedf94802 /test/files/run/enums.scala
parent533ffe9482c530489ad4f6670831b8d87f78193a (diff)
downloadscala-635bc9c17b0d35e9cf8029cf24aee8d3594a143f.tar.gz
scala-635bc9c17b0d35e9cf8029cf24aee8d3594a143f.tar.bz2
scala-635bc9c17b0d35e9cf8029cf24aee8d3594a143f.zip
Misc uninteresting tidbits to take some weight ...
Misc uninteresting tidbits to take some weight off overly large patches in progress. No review.
Diffstat (limited to 'test/files/run/enums.scala')
-rw-r--r--test/files/run/enums.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/enums.scala b/test/files/run/enums.scala
index fcca8d3438..6dda8cbc6e 100644
--- a/test/files/run/enums.scala
+++ b/test/files/run/enums.scala
@@ -29,7 +29,7 @@ object Test2 {
}
def run: Int = {
- val it = for (val s <- ThreadState.values; s.id != 0) yield s;
+ val it = for (s <- ThreadState.values; if s.id != 0) yield s;
it.toList.length
}
}
@@ -41,7 +41,7 @@ object Test3 {
}
def run: Int = {
- val it = for (val d <- Direction.values; d.toString() startsWith "N") yield d;
+ val it = for (d <- Direction.values; if d.toString() startsWith "N") yield d;
it.toList.length
}
}