From 17ba94221e4e120c1442b5611f8f339c0f642c65 Mon Sep 17 00:00:00 2001 From: Clemens Winter Date: Fri, 29 Jul 2016 16:58:30 +0200 Subject: Fix #1372: Add handler for `PatDef`s to REPL --- tests/repl/patdef.check | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/repl/patdef.check (limited to 'tests') 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 -- cgit v1.2.3