[Macro] Incorrect report: macro_not_allowed_declaration. #56747
Labels
area-fe-analyzer-shared
Assigned by engineers; when triaging, prefer either area-front-end or area-analyzer.
cfe-feature-macros
Implement macros features in the CFE
feature-macros
Implementation of the macros feature
pkg-macros
The experimental package:_macros library
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
The following example will report a macro_not_allowed_declaration error. Nevertheless, in the code, the factory constructor is augmented during the definition phase. The expected behavior is to have no error reported.
Macro Example
Error Message
Dart info
The text was updated successfully, but these errors were encountered: