Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-7256] codeCompletion not showing inherited convenience initializers #49804

Closed
AnthonyLatsis opened this issue Mar 22, 2018 · 5 comments
Closed
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling

Comments

@AnthonyLatsis
Copy link
Collaborator

Previous ID SR-7256
Radar None
Original Reporter @AnthonyLatsis
Type Bug
Status Closed
Resolution Done

Attachment: Download

Environment

Xcode Version 9.2 (9C40b)

Additional Detail from JIRA
Votes 0
Component/s CodeCompletion
Labels Bug
Assignee @AnthonyLatsis
Priority Medium

md5: 2216251b244da7cc1a4774012ce834be

blocks:

  • SR-2206 Initializers declared in protocol extensions missing from list of code completions

Issue Description:

Here is the a screenshot:

and the code:

class Number {

    let value: Double    

    init(value: Double) { self.value = value }

    convenience init() { self.init(value: 0) }

    convenience init(value: Double, power: Double) { 
        self.init(value: pow(value, power))
    }
}
class SomeOtherNumber: Number {}

let n1 = SomeOtherNumber.init()
let n2 = SomeOtherNumber.init
@belkadan
Copy link
Contributor

@benlangmuir, is there a dup for this?

@benlangmuir
Copy link
Member

Haven't seen this one. It's weird: it works if you do `SomeOtherNumber(`, but not with `SomeOtherNumber.init`.

@AnthonyLatsis
Copy link
Collaborator Author

This is very likely the same problem as SR-2206

@AnthonyLatsis
Copy link
Collaborator Author

Reverting the duplicate resolution. The problem indeed is common under the hood, but the issues are different.

@AnthonyLatsis
Copy link
Collaborator Author

#16868

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the source tooling Area: IDE support, SourceKit, and other source tooling label Feb 6, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling
Projects
None yet
Development

No branches or pull requests

3 participants