aboutsummaryrefslogtreecommitdiff
path: root/tests/repl
diff options
context:
space:
mode:
authorClemens Winter <clemenswinter1@gmail.com>2016-07-29 16:58:30 +0200
committerClemens Winter <clemenswinter1@gmail.com>2016-08-02 14:42:33 +0200
commit17ba94221e4e120c1442b5611f8f339c0f642c65 (patch)
tree7b8db4f015db4e97f278864b10a259bee32999f1 /tests/repl
parent765aecbe3ca4e05c987dde4e868dca08c7585666 (diff)
downloaddotty-17ba94221e4e120c1442b5611f8f339c0f642c65.tar.gz
dotty-17ba94221e4e120c1442b5611f8f339c0f642c65.tar.bz2
dotty-17ba94221e4e120c1442b5611f8f339c0f642c65.zip
Fix #1372: Add handler for `PatDef`s to REPL
Diffstat (limited to 'tests/repl')
-rw-r--r--tests/repl/patdef.check10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/repl/patdef.check b/tests/repl/patdef.check
new file mode 100644
index 000000000..0cb1c6d4f
--- /dev/null
+++ b/tests/repl/patdef.check
@@ -0,0 +1,10 @@
+scala> val Const,x = 0
+Const: Int = 0
+x: Int = 0
+scala> val (Const, List(`x`, _, a), b) = (0, List(0, 1337, 1), 2)
+a: Int = 1
+b: Int = 2
+scala> val a@b = 0
+a: Int @unchecked = 0
+b: Int @unchecked = 0
+scala> :quit