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
21:43~/Projects/palladium0/sandbox (topic/palladium0)$ s
Test.scala:18:error: value asFreeType is not a member of Test.u.Symbol
sym.asFreeType
^
one error found
The text was updated successfully, but these errors were encountered:
@xeno-by said (edited on Feb 17, 2014 8:48:09 PM UTC):
This is a change in behavior in comparison with 2.10.x (regression?).
FreeTypeSymbol is now designated as volatile, which prevents: 1) pattern matching against vals of such type, 2) extension methods that return such type. If I change FreeTypeSymbolApi with Symbol to Symbol with FreeTypeSymbolApi, it makes everything work fine, but then erasures of Symbol and FreeTypeSymbol start clashing.
I have several questions actually:
Is the change in volatility correct? FreeTypeSymbol transitively extends AnyRef, so why is it volatile?
Why do we disregard extension methods that return volatile types?
The text was updated successfully, but these errors were encountered: