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-4416] Compile Error when inheriting protocol with associated Type #46993

Closed
swift-ci opened this issue Mar 29, 2017 · 1 comment
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-4416
Radar None
Original Reporter alickbass (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Apple Swift version 3.1 (swiftlang-802.0.48 clang-802.0.38)
Target: x86_64-apple-macosx10.9
xcode 8.3

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 43d3b57b5726feab72512a498d62e9ae

duplicates:

  • SR-4382 Raw value type alias in raw representable child is no longer recognised

Issue Description:

The following block of code:

protocol MyProtocol {
    associatedtype SomeType
    func someFunc(param: SomeType)
}

protocol Another: MyProtocol {
    typealias SomeType = Int
}

extension Another {
    func someStuff() {
        someFunc(param: 3)
    }
}

Gives a compile error
cannot invoke 'someFunc' with an argument list of type '(param: Int)' someFunc(param: 3)

@belkadan
Copy link
Contributor

See the discussion on SR-4382. It's unclear whether this was ever correct code to begin with.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
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.
Projects
None yet
Development

No branches or pull requests

2 participants