Confusing error message from analyzer on incomplete mixinApplication #37009
Labels
area-devexp
Developer experience items (DevTools, IDEs, analysis server, completions, refactorings, ...).
contributions-welcome
Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)
devexp-ux
P4
type-enhancement
A request for a change that isn't a bug
Cf. #36946, consider the following program:
With the analyzer (from e13b1b6) we get the following response:
It looks like the analyzer sees
A<X>
and expectswith
(because it's parsing a<mixinApplication>
); then it repairs the program by inventingwith N
whereN
is the empty identifier, and then it complains thatN
is not a class. It might be more helpful for developers to just report a syntax error in the<mixinApplication>
, or at least to avoid describing properties of syntax that the developer did not write.The text was updated successfully, but these errors were encountered: