Skip to content

[Extension types] Allow @immutable on extension types #53351

Description

@pq

The following should be legal IMO:

@immutable
extension type  E(int i) {}

but is currently disallowed by our TargetKind validation (edit: INVALID_IMMUTABLE_ANNOTATION may just need broadening).

Related: #52274

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ondevexp-pkg-metaIssues related to package:metalegacy-area-analyzerUse area-devexp instead.

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