"Use curly braces" quick fix removes comment before the expression guearded by if statement #4440
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is bug
relies on sdk changes
Something that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Describe the bug
If a comment precedes expression guarded by
if
statement without curly braces, the "Use curly braces" quick fix removes the comment.To Reproduce
curly_braces_in_flow_control_structures
lint rule is enforcedThe resulting code is
Expected behavior
The resulting code should be:
Please complete the following information:
The text was updated successfully, but these errors were encountered: