Commit 3e5efcf
committed
[Sema] Don't warn on trailing closures in closure conditions
Add ClosureExpr to the list of expressions we don't
walk into for the purposes of diagnosing trailing
closures in conditional initializers.
rdar://925216181 parent 6fff1c4 commit 3e5efcf
File tree
2 files changed
+11
-0
lines changed- lib/Sema
- test/expr/closure
2 files changed
+11
-0
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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
0 commit comments