From 4ac58b4056bb026ef80aaa44cba6709f7d85c267 Mon Sep 17 00:00:00 2001 From: iarkh Date: Mon, 29 Nov 2021 14:35:37 +0700 Subject: [PATCH] More fix for #1094: Language/Reference/Lexical_Rules/Reserved_Words/final_t06 test corrected according to the current dart 2.9 behavior. --- .../Lexical_Rules/Reserved_Words/final_t06.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Language/Reference/Lexical_Rules/Reserved_Words/final_t06.dart b/Language/Reference/Lexical_Rules/Reserved_Words/final_t06.dart index 0ce63f93af..27efe59566 100644 --- a/Language/Reference/Lexical_Rules/Reserved_Words/final_t06.dart +++ b/Language/Reference/Lexical_Rules/Reserved_Words/final_t06.dart @@ -16,10 +16,22 @@ main() { // ^ // [analyzer] unspecified // [cfe] unspecified + +// Seems like there has been an update in the analyzer, but it is only active in +// new code: It used to ask for initialization of a variable whose name is the +// empty string, and it doesn't do that any more. That variable was invented by +// the analyzer anyway, as part of error recovery. This makes it a secondary +// error (caused by another error). It's generally not specified how to treat +// secondary errors, so co19_2 test accepts the given behavior with respect to +// the secondary errors. do { +//^ +// [analyzer] unspecified + break final; //^^^^^ // [analyzer] unspecified // [cfe] unspecified + } while (false); }