Commit cbebf5c
committed
Clarify condition for
Checking the `enclosingBlockParamName` was really just a proxy for
whether we were in a method or not.
Even for methods with no explicit block parameter, `buildMethod()`,
will add a synthetic `&<blk>`, so the if we're in a method,
`enclosingBlockParamName` is always set by the time it's checked here.block_given? desugar1 parent c247f9a commit cbebf5c
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
| 751 | + | |
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
| 735 | + | |
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| |||
0 commit comments