Project

General

Profile

Actions

Bug #5328

closed

Splat args are treated wrongly in instance_exec and class_exec

Added by myronmarston (Myron Marston) over 12 years ago. Updated almost 10 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
Backport:
[ruby-core:39562]

Description

This gist demonstrates the issue:

https://gist.github.com/1218664

On 1.8.7, instance_exec and class_exec treat splat block args the same as method splat args. On 1.9, it is treated differently and this is very unexpected.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0