-
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).dart-model-analyzer-specIssues with the analyzer's implementation of the language specIssues with the analyzer's implementation of the language specfeature-wildcard-variablesImplementation of the wildcard variables featureImplementation of the wildcard variables featuretriage-automationSee https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
The front-end has this error:
ThisAccessInFieldInitializer:
problemMessage: "Can't access 'this' in a field initializer to read '#name'."
analyzerCode: THIS_ACCESS_FROM_FIELD_INITIALIZER
that names THIS_ACCESS_FROM_FIELD_INITIALIZER
(which doesn't exist).
That said, we do have IMPLICIT_THIS_REFERENCE_IN_INITIALIZER
.
@kallentu: any reason we need a new error code here and can't use IMPLICIT_THIS_REFERENCE_IN_INITIALIZER
?
Here's the relevant part of the spec:
A corresponding (failing) test:
(There are co19 ones too.)
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).dart-model-analyzer-specIssues with the analyzer's implementation of the language specIssues with the analyzer's implementation of the language specfeature-wildcard-variablesImplementation of the wildcard variables featureImplementation of the wildcard variables featuretriage-automationSee https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug