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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 331153002: Version 1.5.0-dev.4.13 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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
Index: dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart
===================================================================
--- dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart (revision 37358)
+++ dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart (working copy)
@@ -2458,6 +2458,14 @@
return warnAndCreateErroneousElement(
node, name, MessageKind.NO_SUCH_LIBRARY_MEMBER,
{'libraryName': prefix.name, 'memberName': name});
+ } else if (target.isAmbiguous) {
+ registry.registerThrowNoSuchMethod();
+ AmbiguousElement ambiguous = target;
+ target = warnAndCreateErroneousElement(node, name,
+ ambiguous.messageKind,
+ ambiguous.messageArguments);
+ ambiguous.diagnose(enclosingElement, compiler);
+ return target;
} else if (target.kind == ElementKind.CLASS) {
ClassElement classElement = target;
classElement.ensureResolved(compiler);
« no previous file with comments | « dart/samples/third_party/todomvc/web/lib-elements/simple_router.html ('k') | dart/tests/language/language_analyzer.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698