Actions
Bug #15808
closedForwardable doesn't allow forwarding the 'print' message
Bug #15808:
Forwardable doesn't allow forwarding the 'print' message
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin17]
Description
The following program forwards two messages to @foo: message 'print' and message 'bar'.
When I forward the 'print' message, I see a warning and the return value of print is always nil
(despite the fact that I specified my own return value).
When I forward the 'bar' message, it works as expected (I see the return value of 'bar').
Files
Actions