Bug in ruby 2.1.0 interpreter?

Hello everybody,

I’m upgrading some apps to 2.1.0, and on one file, I decide to refactor
a
little to use the new 2.1.0 feature, the def returning the symbol of the
created method, coupling with « private ».
But I meet an error during ruby interpretation, which confuse me a lot.

After struggle myself on this ununderstandable error, I discover the
problem
and I write a minimal test-case to recreate the behaviour :
http://short.imirhil.fr/2

Am I wrong somewhere or this file must be totally valid ?
Seems coupling private/def-sym with do/end block confuse the
interpretor…
Do I have to open a bug ticket for this ?

Regards,

Hi,

2014/1/5 Aeris [email protected]:

Am I wrong somewhere or this file must be totally valid ?
Seems coupling private/def-sym with do/end block confuse the interpretor…
Do I have to open a bug ticket for this ?

The above bug was already reported and fixed in trunk version.

But not yet backported to Ruby 2.1.0

Regards,
Park H.