Bug #11202
No warning when a link to an original method body was removed
Description
class C0 def foo end end class C < C0 alias bar foo # C0#foo is pointed from C0 and C#bar. C0.class_eval{undef foo} # C0#foo is pointed C#bar. def bar # C0#foo is not pointed from anybody. end end
このプログラムは、最終的に C0#foo の実体を参照できないようになっていますが、-w で警告を出しません。
一度 alias で取り出したものは、その実体が見つからないようになったとしても、別に気にしない、ということでいいでしょうか。
警告なんで、あまり気にしても、とも思いますが。
Updated by matz (Yukihiro Matsumoto) 3 months ago
- Status changed from Open to Rejected
I don't think the benefit is worth the complexity.
Matz.