Commit 40e20a2
committed
Don't apply "Convert to Trailing Closure" to call with multiple trailing closures
Previously we'd perform an invalid transform or hit
an assertion failure. For now, disallow the transform
for a call that already uses trailing closure syntax.
rdar://811064001 parent 41a1761 commit 40e20a2
File tree
2 files changed
+10
-1
lines changed- lib/IDE
- test/refactoring/TrailingClosure
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3709 | 3709 | | |
3710 | 3710 | | |
3711 | 3711 | | |
3712 | | - | |
| 3712 | + | |
3713 | 3713 | | |
3714 | 3714 | | |
3715 | 3715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments