Index: pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart |
diff --git a/pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart b/pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart |
index 0e08d04f00704ae7742edbceb93056da2c0bf4f9..126c51b0dcbf08fc241d9defcc9f15dc6e663779 100644 |
--- a/pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart |
+++ b/pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart |
@@ -2,7 +2,9 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE.md file. |
-import 'package:front_end/src/fasta/deprecated_problems.dart'; |
+import 'package:front_end/src/fasta/problems.dart' show internalProblem; |
+import 'package:front_end/src/fasta/fasta_codes.dart' |
+ show templateInternalProblemStackNotEmpty; |
import 'package:front_end/src/fasta/type_inference/type_inferrer.dart'; |
import 'package:kernel/ast.dart'; |
@@ -217,7 +219,11 @@ abstract class TypePromoterImpl extends TypePromoter { |
void finished() { |
debugEvent('finished'); |
if (_currentScope is! _TopLevelScope) { |
- deprecated_internalProblem('Stack not empty'); |
+ internalProblem( |
+ templateInternalProblemStackNotEmpty.withArguments( |
+ "$runtimeType", "$_currentScope"), |
+ -1, |
+ null); |
} |
} |