-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add test case for rdar://71566576 #36495
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
Conversation
@swift-ci Please smoke test |
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.
LGTM!
@swift-ci Please smoke test macOS |
@swift-ci Please smoke test Linux |
@@ -0,0 +1,3 @@ | |||
// RUN: %swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename %s | |||
|
|||
if let item = ["a"].first(where: { #^COMPLETE^# }) {} |
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.
Does it need to check actual completions produced here or was it a crasher?
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.
It was a crasher. Do you think it would be worthwhile still checking that we actually produce some completions?
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.
It's up to you if the completions are good :) If it's just to make sure that compiler doesn't crash I'd suggest we move this to validation-test/IDE/crashers_fixed
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.
Thanks for the pointer. I didn’t know about validation-test/IDE/crashers_fixed
. Already applied the new knowledge to #36523 😉
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.
No problem!
rdar://71566576 appears to have been fixed already. Still, add a test case for it to ensure we don’t hit it again.
45ec3e7
to
dc88b4b
Compare
@swift-ci Please smoke test |
@swift-ci Please smoke test Windows |
rdar://71566576 [SR-13877] appears to have been fixed already. Still, add a test case for it to ensure we don’t hit it again.