| Index: pkg/compiler/lib/src/resolution/resolution_common.dart
|
| diff --git a/pkg/compiler/lib/src/resolution/resolution_common.dart b/pkg/compiler/lib/src/resolution/resolution_common.dart
|
| index 53d3c69b7cf3d3fb9d729f5b228d368fd2740db2..837906c7ac5b1eca814bac706fa7f616444fb518 100644
|
| --- a/pkg/compiler/lib/src/resolution/resolution_common.dart
|
| +++ b/pkg/compiler/lib/src/resolution/resolution_common.dart
|
| @@ -56,6 +56,10 @@ abstract class MappingVisitor<T> extends CommonResolverVisitor<T> {
|
|
|
| /// Add [element] to the current scope and check for duplicate definitions.
|
| void addToScope(Element element) {
|
| + if (element is FormalElement && element.isUnnamed) {
|
| + // No duplicate names possible.
|
| + return;
|
| + }
|
| Element existing = scope.add(element);
|
| if (existing != element) {
|
| reportDuplicateDefinition(element.name, element, existing);
|
|
|