Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(931)

Unified Diff: pkg/analyzer/lib/src/error/codes.dart

Issue 2738113002: Add strong mode error for mixins defining conflicting private names (issue 28809) (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/error/error.dart ('k') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/error/codes.dart
diff --git a/pkg/analyzer/lib/src/error/codes.dart b/pkg/analyzer/lib/src/error/codes.dart
index c31595032fe21701f0059936c4acf2435bd9d111..21518eb084fef24f169b770c65cb52f5bc3f4394 100644
--- a/pkg/analyzer/lib/src/error/codes.dart
+++ b/pkg/analyzer/lib/src/error/codes.dart
@@ -2060,6 +2060,17 @@ class CompileTimeErrorCode extends ErrorCode {
"renaming the prefix.");
/**
+ * It is an error for a mixin to add a private name that conflicts with a
+ * private name added by a superclass or another mixin.
+ */
+ static const CompileTimeErrorCode PRIVATE_COLLISION_IN_MIXIN_APPLICATION =
+ const CompileTimeErrorCode(
+ 'PRIVATE_COLLISION_IN_MIXIN_APPLICATION',
+ "The private name {0}, defined by {1}, conflicts with the same name "
+ "defined by {2}.",
+ "Try removing {1} from the 'with' clause.");
+
+ /**
* 6.2.2 Optional Formals: It is a compile-time error if the name of a named
* optional parameter begins with an '_' character.
*/
« no previous file with comments | « pkg/analyzer/lib/error/error.dart ('k') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698