diff --git a/pkg/_fe_analyzer_shared/test/mini_ast.dart b/pkg/_fe_analyzer_shared/test/mini_ast.dart index 0e9443be5def..21bd7e87f5f6 100644 --- a/pkg/_fe_analyzer_shared/test/mini_ast.dart +++ b/pkg/_fe_analyzer_shared/test/mini_ast.dart @@ -1804,7 +1804,7 @@ class Harness { /// Runs the given [statements] through flow analysis, checking any assertions /// they contain. void run(List statements, - {bool errorRecoveryOk = false, Set expectedErrors = const {}}) { + {bool errorRecoveryOK = false, Set expectedErrors = const {}}) { try { _started = true; if (_operations.legacy && patternsEnabled) { @@ -1826,7 +1826,7 @@ class Harness { expect(typeAnalyzer.errors._accumulatedErrors, expectedErrors); var assertInErrorRecoveryStack = typeAnalyzer.errors._assertInErrorRecoveryStack; - if (!errorRecoveryOk && assertInErrorRecoveryStack != null) { + if (!errorRecoveryOK && assertInErrorRecoveryStack != null) { fail('assertInErrorRecovery called but no errors reported: ' '$assertInErrorRecoveryStack'); } diff --git a/pkg/_fe_analyzer_shared/test/type_inference/type_inference_test.dart b/pkg/_fe_analyzer_shared/test/type_inference/type_inference_test.dart index a571e11acaf5..812b09be9fd2 100644 --- a/pkg/_fe_analyzer_shared/test/type_inference/type_inference_test.dart +++ b/pkg/_fe_analyzer_shared/test/type_inference/type_inference_test.dart @@ -1473,7 +1473,7 @@ main() { ], ).checkIR('switch(expr(int), case(heads(variables()), ' 'block(break())))'), - ], errorRecoveryOk: true); + ], errorRecoveryOK: true); }); test('Multiple', () {