Index: pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
index 7b39f2baad1768916a3a764f25448ba2b750d345..07704f33779e6c338cafa865a5e395e559ec9466 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
@@ -621,8 +621,8 @@ class KernelLibraryBuilder |
List<TypeVariableBuilder> typeVariables, |
List<FormalParameterBuilder> formals, |
int charOffset) { |
- return new KernelFunctionTypeBuilder( |
- charOffset, fileUri, returnType, typeVariables, formals); |
+ return addType(new KernelFunctionTypeBuilder( |
+ charOffset, fileUri, returnType, typeVariables, formals)); |
} |
KernelFormalParameterBuilder addFormalParameter( |