diff options
author | Martin Odersky <odersky@gmail.com> | 2016-03-17 16:19:03 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-03-18 12:25:47 +0100 |
commit | e1fb19412c5dcc722e7df24e543aadf03a463c9a (patch) | |
tree | 15c3732fba37b8b609c09b0632edd63fd0b59f77 /tests/repl/import.check | |
parent | 57bde5b5c31b76c687649848bbe2207ebeb7a57d (diff) | |
download | dotty-e1fb19412c5dcc722e7df24e543aadf03a463c9a.tar.gz dotty-e1fb19412c5dcc722e7df24e543aadf03a463c9a.tar.bz2 dotty-e1fb19412c5dcc722e7df24e543aadf03a463c9a.zip |
Add REPL tests
Diffstat (limited to 'tests/repl/import.check')
-rw-r--r-- | tests/repl/import.check | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/repl/import.check b/tests/repl/import.check new file mode 100644 index 000000000..ccaa52190 --- /dev/null +++ b/tests/repl/import.check @@ -0,0 +1,11 @@ +scala> import collection.mutable._ +import collection.mutable._ +scala> val buf = new ListBuffer[Int] +buf: scala.collection.mutable.ListBuffer[Int] = ListBuffer() +scala> buf += 22 +res0: scala.collection.mutable.ListBuffer[Int] = ListBuffer(22) +scala> buf ++= List(1, 2, 3) +res1: scala.collection.mutable.ListBuffer[Int] = ListBuffer(22, 1, 2, 3) +scala> buf.toList +res2: scala.collection.immutable.List[Int] = List(22, 1, 2, 3) +scala> :quit |