No error reported when a const makes explicit use of a type parameter #33439
Labels
legacy-area-analyzer
Use area-devexp instead.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Milestone
Consider the following code:
The VM, dart2js, and the common front end agree that this code has an error at the line marked
(1)
, because a constant expression cannot refer to type variables in enclosing scopes.The analyzer reports no error.
The text was updated successfully, but these errors were encountered: