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
//>usingscala"3.3.0-RC5"//>usingoptions"-Wunused:all"classAclassBdefTest() =valordA:Ordering[A] =???valordB:Ordering[B] =???vala:A=???valb:B=???importordA.givenval_= a > a
importordB.given// warn: Unusedval_= b < b
I have no idea why this one behaves as it does. If we adopt the strategy "an import is used if code refers to some of its imported symbols" this should compile without warning, since mkOrderingOps is selected from ordB.
Compiler version
3.3.0-RC5 with
-Wunused:imports
flag on.Minimized code
Output
Expectation
No warning should be emitted.
The text was updated successfully, but these errors were encountered: