Skip to content

Commit

Permalink
[Truffle] Fix rb_define_class_under
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Sep 5, 2016
1 parent e957794 commit 27bc28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion truffle/src/main/ruby/core/truffle/cext.rb
Expand Up @@ -386,7 +386,7 @@ def rb_define_class_under(mod, name, superclass)
if superclass != current_class.superclass
raise TypeError, "superclass mismatch for class #{name}"
end
klass
current_class
else
mod.const_set name, Class.new(superclass)
end
Expand Down

0 comments on commit 27bc28f

Please sign in to comment.