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
This is potentially a valid downcast given the existing variance rules, and so we allow it. I hope to get an opt in flag for disabling these implicit downcasts implemented shortly. Closing this as a duplicate of #26583 which tracks that feature request.
$ dartanalyzer --strong file.dart
No issues found
$ dart file.dart
(aaa, baa)
$ dart --checked file.dart
type 'MappedListIterable' is not a subtype of type 'List' of 'res'
Shouldn't this at least produce a strong mode warning? Types are clearly not assignable.
The text was updated successfully, but these errors were encountered: