Join GitHub today
Sideways casts should be disallowed #26120
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.