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
importscala.reflect.runtime.universe._objectfoo {
caseclassWrap[A](value: A)
defwithTag[A:TypeTag]:Unit= ()
// new in 2.13.5, incorrect:// warning: parameter value evidence$2 in method withTagWrap1 is never useddefwithTagWrap1[A:TypeTag]:Unit= withTag[Wrap[A]]
// this is expected:// error: No TypeTag available for blah.foo.Wrap[A]defwithTagWrap2[A]:Unit= withTag[Wrap[A]]
}
problem
The TypeTag[A] context bound in withTagWrap1 is used (to derive TypeTag[Wrap[A]]) and should not be reported as unused.
reproduction steps
using Scala 2.13.5 with
-Wunused
:problem
The
TypeTag[A]
context bound inwithTagWrap1
is used (to deriveTypeTag[Wrap[A]]
) and should not be reported as unused.The same code works in Scala 2.13.4.
Possibly related to scala/scala#9346.
The text was updated successfully, but these errors were encountered: