Skip to content

[SR-600] Wrong signature for Array's Sort method #43217

@swift-ci

Description

@swift-ci
Previous ID SR-600
Radar None
Original Reporter mitghi (JIRA User)
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s CodeCompletion
Labels Bug
Assignee None
Priority Medium

md5: 4ae0b0e4c3e24bdc29ff395aa620435d

Issue Description:

let names = ["Chris", "Alex", "Ewa", "Barry", "Daniella"]

When declaring an array, for example an array of strings, on tab completion we see the wrong signature for the sort method :

sort(isOrderedBefore: (String, String) -> Bool(String, String) -> Bool) -> [String]

(String, String) -> Bool is somehow printed twice which creates confusion.

This problem is happening on the following version:

Swift version 2.2-dev (LLVM 3ebdbb2c7e, Clang f66c5bb67b, Swift 1f2908b)
Target: x86_64-unknown-linux-gnu

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.code completionArea → source tooling: code completionsource 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