Sideways casts should be disallowed #26120
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
For backwards compatibility while we transitioned old code to strong mode and added generic method support we've allowed sideways casts in strong mode when the cast would have been an up or down cast in regular Dart. This should be discontinued at some point soon. See TODO(vsm) in DownCast.create in info.dart.
The text was updated successfully, but these errors were encountered: