summaryrefslogtreecommitdiff
path: root/test/files/run/stringbuilder-drop.scala
diff options
context:
space:
mode:
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")
+ }
+}
+