You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- [E091] PatternMatchExhaustivityWarning:Foo.scala:5:16-------------------5|casexss: List[List[A]] =>|^^^^^^^^^^^^^|typearguments are not checked since they are eliminated by erasure
even if we know statically that the type will match.
The text was updated successfully, but these errors were encountered:
-- [E091] PatternMatchExhaustivityWarning: tests/allan/Test.scala:4:16------4|casexss: List[Int] =>|^^^^^^^^^|typearguments are not checked since they are eliminated by erasure
longer explanation available when compiling with`-explain`
I don't think we should emit unchecked warning in pattern matching. Otherwise will have to repeat the work for isInstanceOf checks: #3324.
I believe we can do it once for isInstanceOf checks after we transform pattern match cases to isInstanceOf checks.
produces the following waring
even if we know statically that the type will match.
The text was updated successfully, but these errors were encountered: