Index: pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart |
index e0472a2d03a99db9d70604d592e3849b83180d7d..dac7d72beda9ee237ddcde85d14cb110773cbd50 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart |
@@ -7,7 +7,7 @@ library fasta.kernel_type_variable_builder; |
import 'package:kernel/ast.dart' |
show DartType, TypeParameter, TypeParameterType; |
-import '../errors.dart' show inputError; |
+import '../deprecated_problems.dart' show deprecated_inputError; |
import 'kernel_builder.dart' |
show |
@@ -33,7 +33,7 @@ class KernelTypeVariableBuilder |
DartType buildType( |
LibraryBuilder library, List<KernelTypeBuilder> arguments) { |
if (arguments != null) { |
- library.addWarning(arguments.first.charOffset, |
+ library.deprecated_addWarning(arguments.first.charOffset, |
"Can't use type arguments with type parameter $parameter", |
fileUri: fileUri); |
} |
@@ -43,7 +43,7 @@ class KernelTypeVariableBuilder |
DartType buildTypesWithBuiltArguments( |
LibraryBuilder library, List<DartType> arguments) { |
if (arguments != null) { |
- return inputError(null, null, |
+ return deprecated_inputError(null, null, |
"Can't use type arguments with type parameter $parameter"); |
} else { |
return buildType(library, null); |