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 eb5c3123869a712622f3bd59ba62ab922ac805bd..8becf29506656464d6b9bd41002f9b1e176e6c55 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 |
@@ -15,6 +15,9 @@ import 'package:kernel/ast.dart' show |
import 'package:kernel/type_algebra.dart' show |
substitute; |
+import '../messages.dart' show |
+ warning; |
+ |
import 'kernel_builder.dart' show |
FormalParameterBuilder, |
FunctionTypeAliasBuilder, |
@@ -45,7 +48,8 @@ class KernelFunctionTypeAliasBuilder |
if (thisType == const InvalidType()) { |
thisType = const DynamicType(); |
// TODO(ahe): Build an error somehow. |
- print("${parent.uri}: Cyclic typedef: $name."); |
+ warning(parent.uri, -1, |
+ "The typedef '$name' has a reference to itself."); |
} |
return thisType; |
} |