Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Avoid uninitialized final fields. #22

Merged

Conversation

askeksa-google
Copy link

The abstract SourceSpan class uses uninitialized final fields to put getters into the interface. This is invalid Dart 2 and blocks dart-lang/sdk#33022

@askeksa-google
Copy link
Author

This isn't actually invalid Dart 2 after all, since the class has a factory constructor and therefore does not get a default constructor. The change could still be integrated as a matter of style, but it doesn't block anything.

@nex3 nex3 merged commit 4cc59bf into dart-lang:master Jul 6, 2018
nex3 pushed a commit to nex3/source_span that referenced this pull request Jul 2, 2024
mosuem pushed a commit to dart-lang/tools that referenced this pull request Dec 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants