Skip to content

Redundant self throwing compiler errors #1571

@shkhaliq

Description

@shkhaliq

I am seeing compiler errors across my codebase after bumping the swift-version to 5.9.

SwiftFormat: 0.52.6
Swift Version 5.9
Xcode 14.3.1

An example

        }.didSelect { [weak self] _, someService in
            guard !isPlaceholder, let self else {
                return
            }
---       self.selectionHandler(someService.retailer, self)
+++     selectionHandler(someService.retailer, self)
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions