Incorrect analyzer error on mixin application. #34896
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
The code above should be valid, but in both 2.1.0-dev.7.1 and bleeding edge the analyzer gives the following error:
It looks like the analyzer is requiring that the concrete
remove
method provided in the super class (A
) has the signature of theremove
method fromB
(Object -> void
). This is incorrect. As specified, the concreteremove
method provided by the super class must have a signature matching that in the superclass constraint fromB
(that is, the signature fromA
, i.e.T -> void
).This is causing a spurious error in converting charts_flutter. I'm looking for a workaround.
cc @keertip @lrhn @devoncarew
The text was updated successfully, but these errors were encountered: