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-6425] Subscript generic parameters are not printed #48975

Closed
belkadan opened this issue Nov 17, 2017 · 2 comments
Closed

[SR-6425] Subscript generic parameters are not printed #48975

belkadan opened this issue Nov 17, 2017 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@belkadan
Copy link
Contributor

Previous ID SR-6425
Radar None
Original Reporter @belkadan
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug
Assignee @nathawes
Priority Medium

md5: eb0be37baeb31031d3c7a4858b96a205

Issue Description:

struct Test {
  subscript<T>(input: T) -> T where T: Equatable { return input }
}

When printing this AST, we get

struct Test {
  subscript(input: T) -> T { get }
}

i.e. no generic parameters and no generic constraints.

@belkadan
Copy link
Contributor Author

cc @nathawes

@nathawes
Copy link
Collaborator

PR: #13001

@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