Skip to content

Code completion is not suggesting argument label of existing argument #71189

Open
@ahoppen

Description

@ahoppen

The following test case only suggests lineCap and not dash, which is causing a stress tester failure. One could argue that the current behavior is expected, which would mean that the stress tester needs to be updated.

func test(lineCap: Int = 1, dash: Int = 1) {}
test(#^COMPLETE^# dash: 1)

This change in behavior is caused by #71054

Metadata

Metadata

Assignees

No one assigned

    Labels

    argument labelsFeature: function argument labelscode completionArea → source tooling: code completionfound by stress testerFlag: An issue found by the SourceKit stress testersource toolingArea: IDE support, SourceKit, and other source toolingswift 6.0unexpected behaviorBug: Unexpected behavior or incorrect output

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions