Skip to content

[SR-14888] Enum element labels not suggested in unresolved dot completion for member variable #57235

@ahoppen

Description

@ahoppen
Previous ID SR-14888
Radar rdar://80271413
Original Reporter @ahoppen
Type Bug
Additional Detail from JIRA
Votes 0
Component/s CodeCompletion
Labels Bug, FoundByStressTester
Assignee None
Priority Medium

md5: b38a2d91e10bb95470e60d5a963b76c7

relates to:

  • SR-14689 Enum element labels not suggested in unresolved dot completion

Issue Description:

In the following test case the argument label translation is not suggested. When DragState is added before the dot, the label is suggested.

// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE

enum DragState {
    case inactive
    case dragging(translation: Int)
}

class Foo {
    var state = DragState.inactive
    func foo() {
        state = DragState.dragging(#^COMPLETE^# translation: 0)
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.code completionArea → source tooling: code completionfound by stress testerFlag: An issue found by the SourceKit stress testersource toolingArea: IDE support, SourceKit, and other source tooling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions