From: "ko1 (Koichi Sasada)" Date: 2012-07-14T15:30:36+09:00 Subject: [ruby-core:46418] [ruby-trunk - Bug #5449] nested constant opasign not working Issue #5449 has been updated by ko1 (Koichi Sasada). Assignee changed from matz (Yukihiro Matsumoto) to nobu (Nobuyoshi Nakada) matz said that it should not raise an error. ---------------------------------------- Bug #5449: nested constant opasign not working https://bugs.ruby-lang.org/issues/5449#change-28040 Author: rkh (Konstantin Haase) Status: Assigned Priority: Normal Assignee: nobu (Nobuyoshi Nakada) 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/