-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-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).cfe-feature-macrosImplement macros features in the CFEImplement macros features in the CFEcustomer-flutter-widget-macroIssues related to the flutter stateful widget macroIssues related to the flutter stateful widget macrofeature-macrosImplementation of the macros featureImplementation of the macros featurelegacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.
Description
class Bar {
}
augment class Bar {
const factory Bar() = Foo; // 🔥 warning: error: The name of a factory constructor must be the same as the name of the immediately enclosing class. (invalid_factory_name_not_a_class at [macros_playground] lib/main.dart:26)
}
class Foo implements Bar {
const Foo();
}The analyzer complains about the line marked with 🔥.
Metadata
Metadata
Assignees
Labels
area-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).cfe-feature-macrosImplement macros features in the CFEImplement macros features in the CFEcustomer-flutter-widget-macroIssues related to the flutter stateful widget macroIssues related to the flutter stateful widget macrofeature-macrosImplementation of the macros featureImplementation of the macros featurelegacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.
Type
Projects
Status
Todo