Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index 725496d7658074d56a4b6f07e0f6116f62759662..dcfa06105059aa65cae4f14bfb9bbfe482b704ae 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -12072,7 +12072,7 @@ RawAbstractType* Parser::ParseType( |
Error::Handle(Z), // No previous error. |
script_, |
ident_pos, |
- !prefix->is_loaded() |
+ !prefix->is_loaded() && allow_deferred_type |
? "deferred type '%s.%s' is not yet loaded" |
: "using deferred type '%s.%s' is invalid", |
String::Handle(Z, prefix->name()).ToCString(), |