[macros] typeDeclarationOf
returns different results when running in test mode for enums
#59591
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
feature-macros
Implementation of the macros feature
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
DefinitionBuilder.typeDeclarationOf
returns different results when running in test mode for enumsRepro
https://github.com/cedvdb/sdk/tree/enum_macro_diagnostic
In this repo I modified the original json codable file (json.dart) with the following
To have a diagnostic on whether or not a field declaration was an
EnumDeclaration
. The result is different in the analyzer and during test:I also tried to add a minimal repro with the files
enum_codable.dart
andenum_test.dart
but those may be slightly bugged, still it demonstrates the same output difference.The text was updated successfully, but these errors were encountered: