Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(778)

Unified Diff: runtime/vm/object.cc

Issue 2966583002: Mark class as typedef class before parsing its function type when using the new (Closed)
Patch Set: work in progress Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698