Difference in output for DECLARES_INSTANCE_FIELD
in extension and extension type
#59847
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
type-ux
A user experience or user interface related issue
I was working on https://dart-review.googlesource.com/c/sdk/+/402622 and I got to this code:
Which has a similar case as:
But we have different outputs here:
To start, the error on
extension type
is aCompileTimeErrorCode
and the error onextension
is aParserErrorCode
. I'm unsure of what is the differentiation between them but I don't see any semantic differentiation here that would make them different.But the problem I opened this to discuss is actually the following:
Why do we get more errors on one than on the other? That doesn't seem coherent to me.
CC @bwilkerson @scheglov @srawlins
The text was updated successfully, but these errors were encountered: