From 3af9fe599cfc010d73fedeef538d715213164519 Mon Sep 17 00:00:00 2001 From: odersky Date: Wed, 6 Apr 2022 14:21:08 +0200 Subject: [PATCH] Regression test for #8424 Closed #8424 --- tests/pos/i8424.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pos/i8424.scala diff --git a/tests/pos/i8424.scala b/tests/pos/i8424.scala new file mode 100644 index 000000000000..f557e32e9326 --- /dev/null +++ b/tests/pos/i8424.scala @@ -0,0 +1,9 @@ + +trait T +trait U + +class Test(x: Any)(using val t: T = ???)(using val u: U = ???, disregard: Any = ???) + +object Test { + def apply() = new Test(???) +}