Skip to content

Add specs for defined? on protected methods#1362

Open
sampokuokkanen wants to merge 1 commit into
ruby:masterfrom
sampokuokkanen:defined-protected-method-coverage
Open

Add specs for defined? on protected methods#1362
sampokuokkanen wants to merge 1 commit into
ruby:masterfrom
sampokuokkanen:defined-protected-method-coverage

Conversation

@sampokuokkanen
Copy link
Copy Markdown
Contributor

Covers protected methods accessed via subclass receiver, base-class receiver, and a shared included module. The module case is guarded by ruby_bug "#22076" until 4.1. MRI's defined? returned nil when the call would have succeeded. Fix is in master with backports marked as required for 3.3, 3.4, 4.0.

MRI fix: ruby/ruby#17069
Bug #22076

Hopefully I used ruby_bug correctly.

Covers protected methods accessed via subclass receiver, base-class receiver, and a shared included module. The module case is guarded by ruby_bug "#22076" until 4.1. MRI's defined? returned nil when the call would have succeeded; fix is in master with backports REQUIRED for 3.3, 3.4, 4.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant