Skip to content

“Convert to computed property” should not be offered when function does not have a return value #2430

@ahoppen

Description

@ahoppen

When I have the following, we shouldn’t offer the Convert to computed property refactoring action because the function returns Void / has no return value and thus a computed property does not make sense.

struct Foo {
  func test() {
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions