Skip to content

Commit

Permalink
More fix for #1094: Language/Reference/Lexical_Rules/Reserved_Words/f…
Browse files Browse the repository at this point in the history
…inal_t06 test corrected according to the current dart 2.9 behavior.
  • Loading branch information
iarkh committed Nov 29, 2021
1 parent ae6780e commit 4ac58b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Language/Reference/Lexical_Rules/Reserved_Words/final_t06.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 4ac58b4

Please sign in to comment.