Index: pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart |
index 70e0205dabbc0b7710cdaa374818bba1047a8ded..4b083dcdaebffee0f62d1d375e97a859976e2be6 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart |
@@ -97,7 +97,8 @@ class KernelFunctionTypeAliasBuilder |
if (thisType is DynamicType) return thisType; |
FunctionType result = thisType; |
if (result.typeParameters.isEmpty && arguments == null) return result; |
- arguments = computeDefaultTypeArguments(result.typeParameters, arguments); |
+ arguments = |
+ computeDefaultTypeArguments(library, result.typeParameters, arguments); |
Map<TypeParameter, DartType> substitution = <TypeParameter, DartType>{}; |
for (int i = 0; i < result.typeParameters.length; i++) { |
substitution[result.typeParameters[i]] = arguments[i]; |