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
[warn] /home/dk/macropolis/src/main/scala/macropolis/Equalizer.scala:16:abstracttypeA in typepatternA is unchecked since it is eliminated by erasure
[warn] case bb:A=> bb
[warn]
Comment by Eugene [1]:
That's a limitation of the typecheck, and I invite you to submit a
bug about it. The thing is that the reifee (the body of the reify
call) is: 1) typechecked and, 2) only then reified. The typechecker
from the step 1 doesn't know anything about reification and, in
particular, doesn't know that T isn't just an abstract type, but is
going to be spliced later.
Type check in macros should not yield an unchecked warning (caused by erasure) when the corresponding AbsTypeTag is in scope:
Leads to the following compiler warning:
Comment by Eugene [1]:
That's a limitation of the typecheck, and I invite you to submit a
bug about it. The thing is that the reifee (the body of the reify
call) is: 1) typechecked and, 2) only then reified. The typechecker
from the step 1 doesn't know anything about reification and, in
particular, doesn't know that T isn't just an abstract type, but is
going to be spliced later.
[1] https://groups.google.com/d/msg/scala-user/alYUId3YmuY/rr9WSuAGjwQJ
The text was updated successfully, but these errors were encountered: