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
It's not clear to me that this is a bug. Matching against Foo[String @unchecked] tells the compiler "I don't need you to check that A is String — you may assume it is." And then the compiler proceeds on that assumption.
Following up this question on Stack Overflow:
Pattern matching a type using
typeOf[T]
with@unchecked
gives incorrect result.The code below
expected result:
Found other
actual result:
Found String
The text was updated successfully, but these errors were encountered: