Dart Static Analyzer Fails to Report Missing Constructor Parameters and Freezes on Evaluation (Occurs with Generics and Sealed Classes) #59797
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
Hi, when using the following code snippet, I encountered a bug where the Dart static analyzer does not report an error when not all required parameters are provided to a class constructor.
Additionally, the static analysis seems to freeze when evaluating the code.
However, the error is shown when attempting to compile or run the application in the terminal.
On rare occasions, the static analyzer behaves as expected, showing the corresponding errors.
Case 1:
Case 2:
Tested On:
Windows with Flutter 3.27.1 with Dart 3.6
IDX Platform with the following configuration:
From what I've noticed, the issue seems to arise when using functions that take generics as parameters in combination with sealed classes. I don't know if it occurs in other cases.
This
I would appreciate it if you could tell me what the reason is so I can update my code while it is being fixed.
Thanks
The text was updated successfully, but these errors were encountered: