From 50edb5ce0b05dbbde03aeb58ce95b31c54ad907c Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Fri, 16 Feb 2018 17:08:49 +0100 Subject: [PATCH] Add regression test For issue https://github.com/scala/bug/issues/10533 --- tests/pos/t10533.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/pos/t10533.scala diff --git a/tests/pos/t10533.scala b/tests/pos/t10533.scala new file mode 100644 index 000000000000..d84e87b0bc21 --- /dev/null +++ b/tests/pos/t10533.scala @@ -0,0 +1,5 @@ +object Foo { + val b @ Bar(_) = Bar(1)(2)(3) +} + +case class Bar(a: Int)(b: Int)(c: Int)