We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class A prepend MemoWise memo_wise def answer 42 end end class B < A memo_wise def answer super + 1 end end puts B.new.answer
Expected result: "43" is printed Actual result: SystemStackError is raised
SystemStackError
The text was updated successfully, but these errors were encountered:
I made a test case for this (confirming the issue) using the following test.rb:
test.rb
require "memo_wise" class A prepend MemoWise def answer 42 end memo_wise :answer end class B < A prepend MemoWise def answer super + 1 end memo_wise :answer end puts B.new.answer
Sorry, something went wrong.
Confirmed that removing memo_wise in the parent class A fixes the problem.
memo_wise
A
Seems like we are having a name collision between the super and sub method?
No branches or pull requests
Expected result: "43" is printed
Actual result:
SystemStackError
is raisedThe text was updated successfully, but these errors were encountered: