| Index: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
|
| index f31ffb1274f5ad47d7668d6cef50c6c49a4b2453..a99d04f735027662b38e4e096fafd7c7b3654f7a 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
|
| @@ -1964,6 +1964,9 @@ abstract class ClassElementX extends BaseClassElementX {
|
| }
|
|
|
| void addToScope(Element element, DiagnosticListener listener) {
|
| + if (element.name == name) {
|
| + listener.reportError(element, MessageKind.MEMBER_USES_CLASS_NAME);
|
| + }
|
| localScope.add(element, listener);
|
| }
|
|
|
|
|