Possibly spurious error about mixin with constructor #59569
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
cfe-messages
Poor/undesirable messaging in errors/warnings emitted by the CFE.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
gives a warning of
The error in line 5, "Can't use 'M' as a mixin because it has constructors.", feels misplaced.
The mixin
M
doesn't have constructors, because mixins can't have constructors. That's not preventing using it as a mixin, it's preventing the program from compiling.The only real error, and the only one reported by the analyzer, is that
mixin M
can't declare a constructor.The text was updated successfully, but these errors were encountered: