Index: dart/sdk/lib/_internal/compiler/implementation/enqueue.dart |
diff --git a/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart b/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart |
index ca6d2d6743a4fcb12b57b7b36b7743cdb01290b1..461018f9e860096419d7daca2bfd1800e8007bf3 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/enqueue.dart |
@@ -23,7 +23,11 @@ class EnqueueTask extends CompilerTask { |
if (element.isLibrary()) { |
LibraryElementX library = element; |
Uri uri = library.canonicalUri; |
- if (uri.scheme != 'dart' && !uri.path.startsWith('_')) { |
+ // Don't include private implementation libraries. These |
+ // libraries contain special classes that cause problems |
+ // in other parts of the resolver (in particular Null and Void). |
+ // TODO(ahe): Consider lifting this restriction. |
+ if (uri.scheme != 'dart' || !uri.path.startsWith('_')) { |
members = library.localMembers; |
// TODO(ahe): Is this right? Is this necessary? |
name = library.getLibraryOrScriptName(); |