Autocorrect for implicit_return
breaks when implicit returns are nested
#5660
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
autocorrect for
implicit_return
breaks when implicit returns are nested. Running--fix
forimplicit_return
on the SwiftLint source (0.55.1 for example)In YamlParser.swift
becomes
which fails to compile with
Multiple other similar cases in the SwiftLint source.
The text was updated successfully, but these errors were encountered: