Analyzer: no error when constant constructor redirects to non-constant #34509
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Consider the following program:
With
dartanalyzer
version 0.2.1-dev.4.0 this yields 'No issues', but it is a compile-time error for a constant constructor to redirect to a non-constant constructor (section 'Redirecting Generative Constructors'):As an aside, the vm says 'A constant constructor can't call a non-constant constructor', so I believe that there is no need to create an area-meta issue for several tools.
The text was updated successfully, but these errors were encountered: