-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failuresarea-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).area-metaCross-cutting, high-level issues (for tracking many other implementation issues, ...).Cross-cutting, high-level issues (for tracking many other implementation issues, ...).customer-flutter
Milestone
Description
Dart 1.0 allows any overridden method to tighten the type of a parameter, which is not statically sound without introducing runtime checks.
Strong mode currently uses @checked. This must be changed to covariant.
Dart2js and the VM should ignore the marker (for now).
For 1.22:
- informal specification: (Merged PR Informal proposal for covariant overrides. #28176) current version
- dart2js Implement
covariantmarker in dart2js #28165 - vm Implement
covariantmarker in the VM #28166 - analyzer Support
covariantmarker in the analyzer #28167 - ddc
- support
covariantsyntax. Switch tocovariantin DDC #28168 - change runtime type of tear-offs. This change is backwards-compatible (since it would allow more). covariant parameters should have a wider parameter type at runtime #27484.
- support
- dartfmt Support
covariantmarker. dart_style#572 - dartdoc Implement
covariantmarker in dartdoc dartdoc#1322 - changelog updated (pending https://codereview.chromium.org/2648203003/)
At some later point:
- full specification Specify covariant overrides #28164
Metadata
Metadata
Assignees
Labels
P1A high priority bug; for example, a single project is unusable or has many test failuresA high priority bug; for example, a single project is unusable or has many test failuresarea-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).area-metaCross-cutting, high-level issues (for tracking many other implementation issues, ...).Cross-cutting, high-level issues (for tracking many other implementation issues, ...).customer-flutter