Actions
Feature #13574
openMethod redefinition warning
Feature #13574: Method redefinition warning
Status:
Open
Assignee:
-
Target version:
-
Description
Hi,
If I redefine a method like this, I get a warning:
class Foo def bar end end class Foo def bar end end If I alias the method to a different name, I don't get a warning:
class Foo def bar end end class Foo alias :foo :bar def bar end end I think this is expected. However, if I alias the method to itself, I don't get a warning:
class Foo def bar end end class Foo alias :bar :bar def bar end end I think this case should cause a warning.
Files
Actions