Actions
Bug #16931
closed`defined?` against a protected method call on an inherited instance returns wrong `nil`
Bug #16931:
`defined?` against a protected method call on an inherited instance returns wrong `nil`
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.8.0dev (2020-06-02T08:21:03Z master 56ca006784)
Backport:
Description
The following code shows :callable first, but nil next, since 1.9.
If the method is callable, defined? expression has to return truthy value.
Actions