From 86cfaee2edf90a07b4f2530d19081dfae7b77f32 Mon Sep 17 00:00:00 2001 From: "scheglov@google.com" Date: Thu, 12 Feb 2015 19:17:13 +0000 Subject: [PATCH] Issue 20050. Show corrections for errors. R=brianwilkerson@google.com, danrubel@google.com BUG= https://code.google.com/p/dart/issues/detail?id=20050 Review URL: https://codereview.chromium.org//923623002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43736 260f80e4-7a28-3924-810f-c04153c831b5 --- pkg/analyzer/lib/src/generated/error.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart index 7801e2e4a6d..668fcf45fec 100644 --- a/pkg/analyzer/lib/src/generated/error.dart +++ b/pkg/analyzer/lib/src/generated/error.dart @@ -3806,7 +3806,9 @@ class StaticWarningCode extends ErrorCode { */ static const StaticWarningCode AMBIGUOUS_IMPORT = const StaticWarningCode( 'AMBIGUOUS_IMPORT', - "The name '{0}' is defined in the libraries {1}"); + "The name '{0}' is defined in the libraries {1}", + "Consider using 'as prefix' for one of the import directives " + "or hiding the name from all but one of the imports."); /** * 12.11.1 New: It is a static warning if the static type of ai,