Index: pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart |
index 5ae57e92e7f4a32d4ef299e995331f06e3bec24d..267dde41a5fe27d2d8301a9306e0dc38ee478398 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart |
@@ -46,7 +46,7 @@ import 'package:kernel/type_algebra.dart' show containsTypeVariable, substitute; |
import '../deprecated_problems.dart' show deprecated_internalProblem; |
-import '../messages.dart' show deprecated_warning; |
+import '../messages.dart' show messageNonInstanceTypeVariableUse, warning; |
import '../loader.dart' show Loader; |
@@ -151,8 +151,7 @@ abstract class KernelFunctionBuilder |
substitution[parameter] = const DynamicType(); |
} |
} |
- deprecated_warning(fileUri, charOffset, |
- "Can only use type variables in instance methods."); |
+ warning(messageNonInstanceTypeVariableUse, charOffset, fileUri); |
return substitute(type, substitution); |
} |