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

Unified Diff: runtime/vm/parser.cc

Issue 12211045: Allow ambiguous Expect and ExpectException imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 2234924df99584d4c4dc35139ccf605afdecbe6f..d6431cfcfbc6061cf90b8a02487594276acde338 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -8201,7 +8201,9 @@ RawObject* Parser::ResolveNameInCurrentLibraryScope(intptr_t ident_pos,
imported_obj = LookupNameInImport(import, name);
if (!imported_obj.IsNull()) {
const Library& lib = Library::Handle(import.library());
- if (!first_lib_url.IsNull()) {
+ if (!first_lib_url.IsNull()
regis 2013/02/06 19:40:48 I would add a TODO here to remove this temporary c
floitsch 2013/02/11 17:59:32 Yes. I will add a TODO(issue-number) once I have f
+ && (strcmp(name.ToCString(), "Expect") != 0)
+ && (strcmp(name.ToCString(), "ExpectException") != 0)) {
// Found duplicate definition.
Error& ambiguous_ref_error = Error::Handle();
if (first_lib_url.raw() == lib.url()) {

Powered by Google App Engine
This is Rietveld 408576698