Skip to content

[Primary Constructors] Pre-release migrations #62590

Description

@kallentu

This issue tracks migrations and work that is needed before shipping/flipping the flag.

Context: #61525 (comment)

It used to be possible to mark formal parameters (in general, not just the ones in constructors) as final. This used to mean that the formal parameter itself was immutable. However, we decided that this feature should no longer be supported, which means that it will be an error to put final on a formal parameter of any function other than a declaring constructor

This does give rise to some inconveniences for developers who prefer to use immutable formal parameters (they're forced to change their code to not do that any more). However, final formal parameters are not common today, and it's not hard to teach dart fix to remove final in the locations where it is an error to have it.

Metadata

Metadata

Assignees

Labels

area-google3Tracking issues for internal work. Note that this area is not triaged.feature-primary-constructorsImplementation of the primary constructors feature. Otherwise known as declaring constructors.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions