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

Unified Diff: runtime/vm/cha_test.cc

Issue 23484020: Update handling of ambiguous name references (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | « runtime/lib/mirrors.cc ('k') | runtime/vm/class_finalizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cha_test.cc
===================================================================
--- runtime/vm/cha_test.cc (revision 27310)
+++ runtime/vm/cha_test.cc (working copy)
@@ -33,24 +33,23 @@
const Library& lib = Library::Handle(Library::LookupLibrary(name));
EXPECT(!lib.IsNull());
- String& ambiguity_error_msg = String::Handle();
const Class& class_a = Class::Handle(
- lib.LookupClass(String::Handle(Symbols::New("A")), &ambiguity_error_msg));
+ lib.LookupClass(String::Handle(Symbols::New("A"))));
EXPECT(!class_a.IsNull());
const intptr_t class_a_id = class_a.id();
const Class& class_b = Class::Handle(
- lib.LookupClass(String::Handle(Symbols::New("B")), &ambiguity_error_msg));
+ lib.LookupClass(String::Handle(Symbols::New("B"))));
EXPECT(!class_b.IsNull());
const intptr_t class_b_id = class_b.id();
const Class& class_c = Class::Handle(
- lib.LookupClass(String::Handle(Symbols::New("C")), &ambiguity_error_msg));
+ lib.LookupClass(String::Handle(Symbols::New("C"))));
EXPECT(!class_c.IsNull());
const intptr_t class_c_id = class_c.id();
const Class& class_d = Class::Handle(
- lib.LookupClass(String::Handle(Symbols::New("D")), &ambiguity_error_msg));
+ lib.LookupClass(String::Handle(Symbols::New("D"))));
EXPECT(!class_d.IsNull());
const intptr_t class_d_id = class_d.id();
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/class_finalizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698