| Index: dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| index 6e52485218e7478c23893f7e6d59794ec58dcfee..28379db9d7894c740fa0b660caab8f17308495bb 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| @@ -518,12 +518,13 @@ class ResolverTask extends CompilerTask {
|
|
|
| Element otherMember = holder.lookupLocalMember(name);
|
| if (otherMember != null) {
|
| - compiler.onDeprecatedFeature(member, 'conflicting constructor');
|
| - compiler.reportMessage(
|
| - compiler.spanFromElement(otherMember),
|
| - MessageKind.GENERIC.error(['This member conflicts with a'
|
| - ' constructor.']),
|
| - Diagnostic.INFO);
|
| + if (compiler.onDeprecatedFeature(member, 'conflicting constructor')) {
|
| + compiler.reportMessage(
|
| + compiler.spanFromElement(otherMember),
|
| + MessageKind.GENERIC.error(['This member conflicts with a'
|
| + ' constructor.']),
|
| + Diagnostic.INFO);
|
| + }
|
| }
|
| }
|
|
|
|
|