Index: pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart |
index bff2f52dbaed6b64c091e3dc4bcf67dd54eba223..a905445d0ba91e34fa1f7c7122fce34cd544476f 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart |
@@ -70,7 +70,7 @@ class KernelFunctionTypeBuilder extends FunctionTypeBuilder |
} |
Supertype buildSupertype(LibraryBuilder library) { |
- library.addCompileTimeError( |
+ library.deprecated_addCompileTimeError( |
charOffset, "Can't use a function type as supertype.", |
fileUri: fileUri); |
return null; |