Multiple diagnostic messages emitted for duplicate definition #26788
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
web-dart2js
With reference to the common issue #18361, and following the recommendation in
tests/compiler/dart2js/message_kind_helper.dart
to create an issue on this situation:Duplicate declarations of initializing formal parameters give rise to multiple diagnostic messages with
dart2js --initializing-formal-access
. For instance, consider the following program:The program causes the following messages:
Emitting messages about just one of the problems caused by the duplication would be less confusing for developers. No information would be lost since there is only one root problem: the duplication.
Note that the effect of having option
--initializing-formal-access
will be the regular semantics soon, i.e., the issue will then exist also for runs with no options.The text was updated successfully, but these errors were encountered: