Skip to content

Converting zero-parameter function to computed property drops comment #3236

@ahoppen

Description

@ahoppen

Eg.

/// Some comment
func foo() -> Int {
  1
}

gets converted to

var foo: Void { 
  1
}

The comment should be retained.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions