You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ RBS_TEST_TARGET='A,B' ruby -r rbs/test/setup a.rb
I, [2020-11-19T09:41:59.154893 #177] INFO -- : Setting up hooks for ::A
I, [2020-11-19T09:41:59.155009 #177] INFO -- rbs: Installing runtime type checker in A...
I, [2020-11-19T09:41:59.162527 #177] INFO -- rbs: Setting up method hook in #foo...
I, [2020-11-19T09:41:59.166309 #177] INFO -- : Setting up hooks for ::B
I, [2020-11-19T09:41:59.166368 #177] INFO -- rbs: Installing runtime type checker in B...
I, [2020-11-19T09:41:59.167210 #177] INFO -- rbs: Setting up method hook in #foo...
/usr/local/lib/ruby/gems/3.0.0/gems/rbs-0.17.0/lib/rbs/test/type_check.rb:74:in `args': stack level too deep (SystemStackError) from /usr/local/lib/ruby/gems/3.0.0/gems/rbs-0.17.0/lib/rbs/test/type_check.rb:46:in `method_call' from /usr/local/lib/ruby/gems/3.0.0/gems/rbs-0.17.0/lib/rbs/test/type_check.rb:23:in `block in overloaded_call' from /usr/local/lib/ruby/gems/3.0.0/gems/rbs-0.17.0/lib/rbs/test/type_check.rb:22:in `map'
from /usr/local/lib/ruby/gems/3.0.0/gems/rbs-0.17.0/lib/rbs/test/type_check.rb:22:in `overloaded_call'
The text was updated successfully, but these errors were encountered:
palkan
changed the title
stack level too deep when having super call
rbs/test: stack level too deep when having super call
Nov 19, 2020
Due to the usage of the alias method chain approach (
rbs/lib/rbs/test/hook.rb
Line 48 in 7914225
super
from a method causesstack level too deep
in case both parent and child classes have signatures defined for the method.Example:
Run:
The text was updated successfully, but these errors were encountered: