[MacRuby/MacRuby] 741da0: [fix #208] fix a bug where set a constant which it...
13 Apr
2013
13 Apr
'13
1:06 p.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 741da0312119476ce6b96f989eca5ca5bb270044 https://github.com/MacRuby/MacRuby/commit/741da0312119476ce6b96f989eca5ca5bb... Author: Watson <watson1978@gmail.com> Date: 2013-04-13 (Sat, 13 Apr 2013) Changed paths: M variable.c Log Message: ----------- [fix #208] fix a bug where set a constant which it will not raise an exception if it contains Fixnum in namaspec Result: $ macruby -e 'p 7::C = 42' 42 $ macruby -e 'A = 7; p A::C = 42' 42 Expect: $ ruby -e 'p 7::C = 42' -e:1:in `<main>': 7 is not a class/module (TypeError) $ ruby -e 'A = 7; p A::C = 42' -e:1:in `<main>': 7 is not a class/module (TypeError)
4593
Age (days ago)
4593
Last active (days ago)
0 comments
1 participants
participants (1)
-
GitHub