1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* class.c (rb_define_method): do not set NOEX_CFUNC if klass is

really a module, whose methods must be safe for reciever's type.

* eval.c (rb_eval): nosuper should not be inherited unless the
  overwritten method is an undef placeholder.

* parse.y (primary): allow 'when'-less case statement; persuaded
  by Sean Chittenden.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2002-11-07 19:18:16 +00:00
parent 8e3721dfa8
commit 54fdacb125
9 changed files with 48 additions and 22 deletions

View file

@ -265,7 +265,7 @@ class Set
def flatten_merge(set, seen = Set.new)
set.each { |e|
if e.is_a?(Set)
if seen.include?(e_id = e.id)
if seen.include?(e_id = e.object_id)
raise ArgumentError, "tried to flatten recursive Set"
end