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
perl6 -e 'role R does Callable { method foo { self.say } }'
===SORRY!===
Internal error: failed to remove block
Removing the Callable role, or inheriting with 'is' instead of
composing, makes the error go away. Calling metamethods (.WHAT tested)
also works.
Even removing the method surrounding the call gives the same error,
instead of 'no self available'.
Current behavior suggests this has been fixed:
$ perl6 -e 'role R does Callable { method foo { self.say } }'
$ perl6 -e 'role R does Callable { method foo { self.say } }; R.foo'
(R)
$ perl6 -e 'role R does Callable { self.say }; R.foo'
===SORRY!=== Error while compiling -e
'self' used where no object is available
at -e:1
------> role R does Callable {⏏ self.say }; R.foo
expecting any of:
term
Migrated from rt.perl.org#124006 (status was 'open')
Searchable as RT124006$
The text was updated successfully, but these errors were encountered: