Issue #5449 has been updated by Koichi Sasada.

Status changed from Open to Assigned
Assignee set to Yukihiro Matsumoto
Target version set to 2.0.0


----------------------------------------
Bug #5449: nested constant opasign not working
https://bugs.ruby-lang.org/issues/5449

Author: Konstantin Haase
Status: Assigned
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: core
Target version: 2.0.0
ruby -v: 1.9.2-p290


=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



-- 
http://bugs.ruby-lang.org/