Issue #9416 has been updated by Yui NARUSE.

Backport changed from 1.9.3: DONE, 2.0.0: DONE, 2.1: REQUIRED to 1.9.3: DONE, 2.0.0: DONE, 2.1: DONE

r45086.

----------------------------------------
Bug #9416: 'private def' results in syntax errors in the method
https://bugs.ruby-lang.org/issues/9416#change-45350

* Author: First Last
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: -
* Backport: 1.9.3: DONE, 2.0.0: DONE, 2.1: DONE
----------------------------------------
```
class Class1
  private def foo
    [1, 2].each do |e|
      p e
    end
  end
end

Class1.new.send :foo
```
_______________________________

```
syntax error, unexpected keyword_do_block, expecting keyword_end
    [1, 2].each do |e|
                  ^
```



-- 
http://bugs.ruby-lang.org/