-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
compilerThe Swift compiler itselfThe Swift compiler itselffeatureA feature request or implementationA feature request or implementationgood first issueGood for newcomersGood for newcomersrefactoringArea → source tooling: refactoringArea → source tooling: refactoringsource toolingArea: IDE support, SourceKit, and other source toolingArea: IDE support, SourceKit, and other source tooling
Description
| Previous ID | SR-5794 |
| Radar | rdar://32751037 |
| Original Reporter | @akyrtzi |
| Type | New Feature |
| Status | Resolved |
| Resolution | Done |
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Source Tooling |
| Labels | New Feature, Refactoring, StarterProposal |
| Assignee | romanroibu (JIRA) |
| Priority | Medium |
md5: 4c821f590e264347c4d79d13cd5eb470
Issue Description:
When selecting a ternary expression
let x = expression ? a : bSuggest expanding to an if-else:
let x: Int
if expression {
x = a
} else {
x = b
}And vice-versa.
Metadata
Metadata
Assignees
Labels
compilerThe Swift compiler itselfThe Swift compiler itselffeatureA feature request or implementationA feature request or implementationgood first issueGood for newcomersGood for newcomersrefactoringArea → source tooling: refactoringArea → source tooling: refactoringsource toolingArea: IDE support, SourceKit, and other source toolingArea: IDE support, SourceKit, and other source tooling