Actions
Bug #5449
closednested constant opasign not working
Bug #5449:
nested constant opasign not working
Description
=begin
This code works on 1.9:
Foo ||= 42
However, (({ ::Foo ||= 42 })) and
Foo ||= Module.new
Foo::Bar ||= 42
both raise a SyntaxError: constant re-assignment.
(Note: I had to use the (({...})) syntax so Redmine wouldn't turn ::Foo into a link)
=end
Files
Actions