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 0abc72018f0dd870f4f7d94aa90fa66d2a7f172f..ea5bfdba3b80f1afdd05d7141ea4c52629717612 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 |
@@ -52,7 +52,7 @@ class KernelFunctionTypeAliasBuilder |
DartType buildThisType(LibraryBuilder library) { |
if (thisType != null) { |
if (const InvalidType() == thisType) { |
- library.addCompileTimeError( |
+ library.deprecated_addCompileTimeError( |
charOffset, "The typedef '$name' has a reference to itself."); |
return const DynamicType(); |
} |