aboutsummaryrefslogtreecommitdiff
path: root/tests/repl
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-07-31 18:13:05 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-31 18:13:17 +0200
commit6fc81930c1014638fd7eeba026b8317e8bf5fc32 (patch)
tree94efdccc90eb0230bd01949de4378fc8d3c20a63 /tests/repl
parented05cbaaf0192a44c0b934eb94215dceff4f3dbe (diff)
downloaddotty-6fc81930c1014638fd7eeba026b8317e8bf5fc32.tar.gz
dotty-6fc81930c1014638fd7eeba026b8317e8bf5fc32.tar.bz2
dotty-6fc81930c1014638fd7eeba026b8317e8bf5fc32.zip
Fix varable printing in REPL
We accidentally used `toString` instead of `show`. Fixes #1426.
Diffstat (limited to 'tests/repl')
-rw-r--r--tests/repl/vars.check8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/repl/vars.check b/tests/repl/vars.check
new file mode 100644
index 000000000..5cebbf61c
--- /dev/null
+++ b/tests/repl/vars.check
@@ -0,0 +1,8 @@
+scala> var x = 0
+x: Int = 0
+scala> x = x + 1
+x: Int = 1
+scala> x *= 2
+scala> x
+res2: Int = 2
+scala> :quit