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

[Parse] Parse generic argument list after '->' #37596

Closed

Conversation

willtunnels
Copy link

In order to support generalized opaque return types like func foo() -> <T> T where T.U == Int, we need this syntax extension. See https://forums.swift.org/t/improving-the-ui-of-generics/22814.

@willtunnels willtunnels requested a review from rintaro May 21, 2021 23:26
@willtunnels
Copy link
Author

@swift-ci smoke test

@willtunnels willtunnels force-pushed the opaque-return-constraint-syntax branch from 9c10165 to 8c1ed86 Compare May 21, 2021 23:32
In order to support generalized opaque return types like `func foo() -> <T> T where T.U == Int`, we need this syntax extension. See https://forums.swift.org/t/improving-the-ui-of-generics/22814.
@willtunnels willtunnels force-pushed the opaque-return-constraint-syntax branch from 8c1ed86 to c0229b2 Compare May 21, 2021 23:38
@willtunnels
Copy link
Author

This adds placeholder syntax which, after some discussion, is not something which we can merge as is into main.

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

Successfully merging this pull request may close these issues.

None yet

1 participant