Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 52c92e2face95c1fb801fa3d09b2d09cd3cd95a8..1bc2349ef84a35d89093b842e64ef8774d07081d 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -6005,9 +6005,9 @@ void Function::set_native_name(const String& value) const { |
void Function::set_result_type(const AbstractType& value) const { |
ASSERT(!value.IsNull()); |
StorePointer(&raw_ptr()->result_type_, value.raw()); |
- if (value.IsFunctionType() && !value.IsResolved()) { |
- // The unresolved function result type may refer to this |
- // function's type parameters. Change its parent function. |
+ if (value.IsFunctionType()) { |
+ // The function result type may refer to this function's type parameters. |
+ // Change its parent function. |
const Function& result_signature_function = |
Function::Handle(Type::Cast(value).signature()); |
result_signature_function.set_parent_function(*this); |