ClassCastException (ArraySeq) when pattern-matching on varargs case class #11476
We encounter a weird ClassCastException when running our tests in ScalaTest for org.scalactic.Every, that looks like this:
I tried to minimize the problem but not quite successful, the best I can do is to include the source of Every as com.test.Every, in the attached zip (a sbt project), you can reproduce the problem by running:
If you change the scala version to 2.12.8, it works without problem.
Well, “suspect” is too strong right now. Maybe the PR was just in the wrong place at the wrong time :-)…
On Mon, 8 Apr 2019 at 16:08, Seth Tisue ***@***.***> wrote: @cheeseng <https://github.com/cheeseng> is this hard to work around in your codebase? wondering how much of a 2.13 blocker it is — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#11476 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAFjy1CE4q9zT5fmV3q-MZm6WpqrFcwwks5ve2lsgaJpZM4ciV4j> .