0117e75b41
If we statically know the types are unrelated, there is like no chance for the cast to succeed at runtime. This is likely a sign that automatic migration went wrong somewhere and human intervention is needed. The cast just delays the problem to runtime. Skip the cast and let it fail at compile time instead. Change-Id: Ib557650b368c8f2839029e8a2e54c6bf9474035b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/280119 Commit-Queue: Ilya Yanok <yanok@google.com> Reviewed-by: Paul Berry <paulberry@google.com>