Skip to content

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

Merged
merged 1 commit into from
Mar 22, 2021
Merged

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Mar 18, 2021

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.

@ahoppen ahoppen requested a review from nathawes March 18, 2021 17:05
@ahoppen
Copy link
Member Author

ahoppen commented Mar 18, 2021

@swift-ci Please smoke test

Copy link
Contributor

@nathawes nathawes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ahoppen
Copy link
Member Author

ahoppen commented Mar 19, 2021

@swift-ci Please smoke test macOS

@ahoppen
Copy link
Member Author

ahoppen commented Mar 19, 2021

@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^# }) {}
Copy link
Contributor

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?

Copy link
Member Author

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?

Copy link
Contributor

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

Copy link
Member Author

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 😉

Copy link
Contributor

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.
@ahoppen
Copy link
Member Author

ahoppen commented Mar 19, 2021

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Mar 22, 2021

@swift-ci Please smoke test Windows

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.

3 participants