Compiler version
v3.7.4
Minimized code
case class Foo(arg1: Int, arg2: Int)
object Test:
Foo(1, 2) match
case Foo(arg1 =
5
) =>
Note that the following compiles successfully:
case class Foo(arg1: Int, arg2: Int)
object Test:
Foo(1, 2) match
case Foo(arg1 =
5
) =>
Output
error: illegal start of simple pattern
Expectation
No errors.