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-7467] associatedType having a default type is broken with more than two use #50010

kateinoigakukun opened this issue Apr 18, 2018 · 1 comment


Copy link

kateinoigakukun commented Apr 18, 2018

Previous ID SR-7467
Radar None
Original Reporter @kateinoigakukun
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @kateinoigakukun
Priority Medium

md5: f2f22b2ccca7f1fd5d33002d0d33e04f

Issue Description:

Minimum code is here.

protocol P {
    associatedtype X = Int

    func f1(_ x: X)
    func f2(_ x: X)

struct S: P {
    func f1(_ x: X) {}
    func f2(_ x: X) {}
error: reference to invalid associated type 'X' of type 'S'
    func f2(_ x: X) {}
Copy link

belkadan commented Apr 18, 2018

I think there's a dup of this but I can't find it at the moment. @DougGregor?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants