Skip to content

Suggestions based on initial label match #62877

Open
@dabrahams

Description

@dabrahams
/Users/dave/src/val/Tests/ValTests/Utils/AnnotatedValFileTest.swift:94:45: error: value of type '[TestAnnotation : Diagnostic]' has no member 'indexForKey'
        if let i = diagnosticsByExpectation.indexForKey(a) {
                   ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~

diagnosticsByExpectation is a Dictionary. It would be nice if the compiler suggested "did you mean: index(forKey: a)" with a fixit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of Implementationfix-itsFeature: diagnostic fix-itsimprovementtype checkerArea → compiler: Semantic analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions