Skip to content

Commit 35a982b

Browse files
creliercommit-bot@chromium.org
authored andcommitted
[VM kernel] Add missing type parameter finalization in type reader.
Change-Id: I09ae8dc759a4fb4d98c0c71ddda7d38de3525324 Reviewed-on: https://dart-review.googlesource.com/68431 Reviewed-by: Alexander Markov <[email protected]> Commit-Queue: Régis Crelier <[email protected]>
1 parent 09a8660 commit 35a982b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

runtime/vm/compiler/frontend/kernel_translation_helper.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2840,6 +2840,10 @@ void TypeTranslator::BuildTypeParameterType() {
28402840
result_ ^=
28412841
TypeArguments::Handle(Z, active_class_->member->type_parameters())
28422842
.TypeAt(parameter_index);
2843+
if (finalize_) {
2844+
result_ =
2845+
ClassFinalizer::FinalizeType(*active_class_->klass, result_);
2846+
}
28432847
} else {
28442848
result_ ^= Type::DynamicType();
28452849
}
@@ -2857,6 +2861,9 @@ void TypeTranslator::BuildTypeParameterType() {
28572861
} else {
28582862
result_ ^= Type::DynamicType();
28592863
}
2864+
if (finalize_) {
2865+
result_ = ClassFinalizer::FinalizeType(*active_class_->klass, result_);
2866+
}
28602867
return;
28612868
}
28622869
parameter_index -= active_class_->local_type_parameters->Length();

0 commit comments

Comments
 (0)