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-5794] Expand a ternary operator into an if statement and vice-versa #48364
Comments
Comment by Roman Roibu (JIRA) Hi @akyrtzi, Is anybody working on this issue? Thanks! |
Not AFAIK. Note that it is 'Unassigned'. |
Comment by KacperHarasim (JIRA) Hi romanroibu (JIRA User), are you working on this? Asking because the issue is still unassigned. Thanks! |
Comment by Roman Roibu (JIRA) Hi kacperh (JIRA User). Yes, I'm working on this, but making slow progress. I'll change the assignee status, thanks! |
Comment by Roman Roibu (JIRA) Opened a PR to implement this: #12554 |
Is this resolved ? |
PR is merged, but this isn't on Xcode 9.3 beta 1? |
This came after the 'swift-4.1' branch and was not merged to that. We should have notified Roman to do another PR for swift-4.1. Unfortunately, at this point we are in convergence mode and only aim to get critical fixes into that branch. |
Comment by Anton Vlasov (JIRA) This works fine at Xcode 10.1 (10B61). I think the issue should be closed. |
Additional Detail from JIRA
md5: 4c821f590e264347c4d79d13cd5eb470
Issue Description:
When selecting a ternary expression
Suggest expanding to an if-else:
And vice-versa.
The text was updated successfully, but these errors were encountered: