summaryrefslogtreecommitdiff
path: root/test/files/run/stringbuilder-drop.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-09-15 23:13:34 +0000
committerPaul Phillips <paulp@improving.org>2010-09-15 23:13:34 +0000
commitf78d8f648e7c5d4bd0102a03be3e6c8479146e39 (patch)
tree1e0c01165a9d8ca243d050e2fc056847e0b6cce6 /test/files/run/stringbuilder-drop.scala
parentedf94d0bafbbe0783e2d5e7b2cd91e03447d572e (diff)
downloadscala-f78d8f648e7c5d4bd0102a03be3e6c8479146e39.tar.gz
scala-f78d8f648e7c5d4bd0102a03be3e6c8479146e39.tar.bz2
scala-f78d8f648e7c5d4bd0102a03be3e6c8479146e39.zip
Gave StringBuilder a StringLike parent as endor...
Gave StringBuilder a StringLike parent as endorsed by martin in http://www.scala-lang.org/node/6893 . Review by odersky.
Diffstat (limited to 'test/files/run/stringbuilder-drop.scala')
-rw-r--r--test/files/run/stringbuilder-drop.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/stringbuilder-drop.scala b/test/files/run/stringbuilder-drop.scala
new file mode 100644
index 0000000000..a9e5a71762
--- /dev/null
+++ b/test/files/run/stringbuilder-drop.scala
@@ -0,0 +1,7 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ val s = (new StringBuilder ++= "hello world") dropRight 1 toString;
+ assert(s == "hello worl")
+ }
+}
+