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