aboutsummaryrefslogtreecommitdiff
path: root/tests/repl
diff options
context:
space:
mode:
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