aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-11-15 12:09:50 +0100
committerMartin Odersky <odersky@gmail.com>2013-11-15 12:10:02 +0100
commit7a9e632c64865084e6e8559a0e6ea90e2b706a8b (patch)
treeab772e5db15e653421629cca3a2fc341e661b3d1
parent73ee6c8ab79f13d80899beacd3f0d16814ffb2db (diff)
downloaddotty-7a9e632c64865084e6e8559a0e6ea90e2b706a8b.tar.gz
dotty-7a9e632c64865084e6e8559a0e6ea90e2b706a8b.tar.bz2
dotty-7a9e632c64865084e6e8559a0e6ea90e2b706a8b.zip
Tweak to Coder test
-rw-r--r--src/dotty/tools/dotc/ast/Trees.scala2
-rw-r--r--tests/pos/Coder.scala4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/ast/Trees.scala b/src/dotty/tools/dotc/ast/Trees.scala
index 8677331d6..ae3b8008a 100644
--- a/src/dotty/tools/dotc/ast/Trees.scala
+++ b/src/dotty/tools/dotc/ast/Trees.scala
@@ -207,7 +207,7 @@ object Trees {
/** Destructively set the type of the tree. This should be called only when it is known that
* it is safe under sharing to do so. One user-case is in the withType method below
- * which implements copy-on-write. Another user-case is in method interpolateAndAdapt in Typer,
+ * which implements copy-on-write. Another use-case is in method interpolateAndAdapt in Typer,
* where we overwrite with a simplified version of the type itself.
*/
private[dotc] def overwriteType(tpe: T) = myTpe = tpe
diff --git a/tests/pos/Coder.scala b/tests/pos/Coder.scala
index a47dcf3c9..73e2542c0 100644
--- a/tests/pos/Coder.scala
+++ b/tests/pos/Coder.scala
@@ -43,8 +43,8 @@ class Coder(words: List[String]) {
word <- wordsForNum(number take splitPoint)
rest <- encode(number drop splitPoint)
} yield word :: rest
- )
- xs.toSet
+ ).toSet
+ xs//.toSet
}
/** Maps a number to a list of all word phrases that can represent it */