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

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

Issue 2716453006: Add error for mixins defining conflicting private names (issue 28809) (Closed)
Patch Set: Created 3 years, 10 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 8171fa6ab13f4c118a0c4237092fad9db00b2bec..099a06f0fa987e3379eaa1b7870782dea3e2b564 100644
--- a/pkg/analyzer/lib/src/error/codes.dart
+++ b/pkg/analyzer/lib/src/error/codes.dart
@@ -2046,6 +2046,16 @@ class CompileTimeErrorCode extends ErrorCode {
"renaming the prefix.");
/**
+ * It is an error for a mixin to add a private name that conflicts with a
scheglov 2017/02/24 23:03:51 ...?
Brian Wilkerson 2017/02/24 23:07:20 Thought completed.
+ */
+ 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