-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Pull SE-0081 into Swift 3.0 Preview 1 #2850
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
Pull SE-0081 into Swift 3.0 Preview 1 #2850
Conversation
…declaration This patch includes testsuite changes to show each of the decls supported. Next step is to migrate the stdlib + testsuite + corelibs: I'd would *greatly* appreciate help with this. After that is done, deprecation + migration of the old form can happen.
…to trigger existing generics bugs.
|
@swift-ci smoke test OS X platform |
|
@swift-ci test linux |
|
|
||
| ```swift | ||
| func anyCommonElements<T : SequenceType, U : SequenceType>(lhs: T, _ rhs: U) -> Bool | ||
| where T.Generator.Element: Equatable, T.Generator.Element == U.Generator.Element> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing > at the end of the line there.
|
@DougGregor can you review this? |
|
@rjmccall can you review? |
|
LGTM. |
|
Note that this crashes if you add a where clause to something that isn't generic: |
|
Yeah, I realized after LGTM'ing that this case was problematic; sorry, Ted. Doug and I talked about it, and the patch needs to be fixed to not make promises we're not ready for. |
|
Reverted in #2860 |
|
@rjmccall @DougGregor do we have a bug report for this case? |
|
@tkremenek We also need syntax highlighting, code completion, formatting, and interface printing support. It might just fall out from existing infrastructure, but it can also crash badly -- we don't know yet. We need to add tests for these IDE features even if they happen to work perfectly fine with the new syntax. |
Pull SE-0081 into Swift 3.0 Preview 1.