We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This should not compile:
sealed trait Foo[T] case class Bar[T](s: String) def shouldError[T](foo: Foo[T]): String = foo match { case bar: Bar[T] => bar.s }
Not even a warning is produced, as is.