Index: pkg/front_end/lib/src/fasta/loader.dart |
diff --git a/pkg/front_end/lib/src/fasta/loader.dart b/pkg/front_end/lib/src/fasta/loader.dart |
index 4f94ef5555274cde6b1e489b9dcb266ba38e622b..a069d12c4b29fb8ddd9555210d459b6ef70709b2 100644 |
--- a/pkg/front_end/lib/src/fasta/loader.dart |
+++ b/pkg/front_end/lib/src/fasta/loader.dart |
@@ -84,6 +84,9 @@ abstract class Loader<L> { |
coreLibrary = library; |
target.loadExtraRequiredLibraries(this); |
} |
+ if (target.backendTarget.mayDefineRestrictedType(uri)) { |
+ library.mayImplementRestrictedTypes = true; |
+ } |
if (uri.scheme == "dart") { |
target.readPatchFiles(library); |
} |