Skip to content

Support covariant method overrides #27486

@munificent

Description

@munificent

Informal spec

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:

At some later point:

Metadata

Metadata

Assignees

Labels

P1A 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).area-metaCross-cutting, high-level issues (for tracking many other implementation issues, ...).customer-flutter

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions