| Index: runtime/vm/runtime_entry.cc
|
| diff --git a/runtime/vm/runtime_entry.cc b/runtime/vm/runtime_entry.cc
|
| index 5483676159bd6f78ed36828833da47f7f73e5e8d..28e4dde39418b48643eb062f1605416b53f4b2f6 100644
|
| --- a/runtime/vm/runtime_entry.cc
|
| +++ b/runtime/vm/runtime_entry.cc
|
| @@ -390,7 +390,8 @@ static void PrintTypeCheck(const char* message,
|
|
|
| const AbstractType& instance_type =
|
| AbstractType::Handle(instance.GetType(Heap::kNew));
|
| - ASSERT(instance_type.IsInstantiated());
|
| + ASSERT(instance_type.IsInstantiated() ||
|
| + (instance.IsClosure() && instance_type.IsInstantiated(kCurrentClass)));
|
| if (type.IsInstantiated()) {
|
| OS::PrintErr("%s: '%s' %" Pd " %s '%s' %" Pd " (pc: %#" Px ").\n", message,
|
| String::Handle(instance_type.Name()).ToCString(),
|
|
|