[ruby-core:115805] [Ruby master Bug#20063] Inconsistent behavior with required vs optional parameters