Project

General

Profile

Actions

Bug #14670

closed

Objectで定義したmethod_missingでsuperが使えない

Added by keiju (Keiju Ishitsuka) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-dev:50522]

Description

class Object
  def method_missing(name, *args, &block)
    super
  end
end

Object.new.foo

を実行すると, SystemStackError になってしまいます.

再定義する先がObjectでなければ(Objectのサブクラスなら)問題ないです.


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #14313: Support creating KeyError with receiver and key from RubyClosedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0