Chromium Code Reviews| Index: runtime/vm/parser.cc |
| =================================================================== |
| --- runtime/vm/parser.cc (revision 25191) |
| +++ runtime/vm/parser.cc (working copy) |
| @@ -2798,7 +2798,12 @@ |
| *(qual_ident->ident), |
| NULL)) { |
| LibraryPrefix& lib_prefix = LibraryPrefix::ZoneHandle(); |
| - lib_prefix = current_class().LookupLibraryPrefix(*(qual_ident->ident)); |
| + if (current_class().mixin() == Type::null()) { |
|
Ivan Posva
2013/07/19 19:00:25
Please add a TODO to figure out why we are not usi
|
| + lib_prefix = current_class().LookupLibraryPrefix(*(qual_ident->ident)); |
| + } else { |
| + Class& cls = Class::Handle(parsed_function()->function().origin()); |
| + lib_prefix = cls.LookupLibraryPrefix(*(qual_ident->ident)); |
| + } |
| if (!lib_prefix.IsNull()) { |
| // We have a library prefix qualified identifier, unless the prefix is |
| // shadowed by a type parameter in scope. |