[ruby-cvs:67971] nobu:r60790 (trunk): parse.y: no return in class

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Nov 16 14:36:43 JST 2017


nobu	2017-11-16 14:36:42 +0900 (Thu, 16 Nov 2017)

  New Revision: 60790

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60790

  Log:
    parse.y: no return in class
    
    * parse.y (k_return): prohibit return in class/module body except
      for singleton class.

  Modified files:
    trunk/parse.y
    trunk/spec/ruby/language/return_spec.rb
    trunk/test/ruby/test_class.rb
    trunk/test/ruby/test_syntax.rb


More information about the ruby-cvs mailing list