Skip to content

False alarm for new async properties and implicit_getter #3684

Closed
@basememara

Description

This triggers a violation for implicit_getter:

class DatabaseEntity {
    var isSynced: Bool {
        get async {
            await database.isEntitySynced(self)
        }
    }
}

There isn't another way to define an async property in Swift 5.5 so the getter is required here. I think if get async is declared for a property, it should not trigger a implicit_getter failure.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions