From e3bad2efa3abf4884e07c6222f5d152e18c64b2d Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 22 Feb 2017 16:15:30 +0100 Subject: Fix #2020: Only the first parameters of a case class are caseaccessors Only the parameters in the first parameter list of a case class should get the `CaseAccessor` flag. Fixes #2020. --- tests/run/i2020.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/run/i2020.scala (limited to 'tests/run') diff --git a/tests/run/i2020.scala b/tests/run/i2020.scala new file mode 100644 index 000000000..78794a590 --- /dev/null +++ b/tests/run/i2020.scala @@ -0,0 +1,8 @@ +object Test { + + case class Foo(x: Int)(y: Int) + + def main(args: Array[String]) = + assert(Foo(1)(1) == Foo(1)(2)) + +} -- cgit v1.2.3