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
The n method from B is there but the value is lost. I would have expected it to print "5". The syntax role C[$n] does B[$n] is legal and it seems natural that the latter $n is in the same scope as the role parameter.
The text was updated successfully, but these errors were encountered:
The Problem
A parameterized role can't refer to its arguments in roles it
doesitself:Expected Behavior
The
nmethod fromBis there but the value is lost. I would have expected it to print "5". The syntaxrole C[$n] does B[$n]is legal and it seems natural that the latter$nis in the same scope as the role parameter.The text was updated successfully, but these errors were encountered: