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

I think I found a false positive. #727

Closed
scott-lydon opened this issue Apr 4, 2024 · 1 comment
Closed

I think I found a false positive. #727

scott-lydon opened this issue Apr 4, 2024 · 1 comment

Comments

@scott-lydon
Copy link

scott-lydon commented Apr 4, 2024

If you create an initializer for arrays

extension Array where Element == Int { 

    init(myNewInit: String) { 
        self = [1]
    }
}

let test = [Int](myNewInit: "This isn't picked up")

Apart from that, thank you for all your great work!

@ileitch
Copy link
Contributor

ileitch commented Apr 29, 2024

Unfortunately, this is a known issue caused by a bug in the Swift compiler: #1

@ileitch ileitch closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants