[macruby-changes] [MacRuby/MacRuby] 741da0: [fix #208] fix a bug where set a constant which it...

GitHub noreply at github.com
Sat Apr 13 06:06:51 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/MacRuby/MacRuby
  Commit: 741da0312119476ce6b96f989eca5ca5bb270044
      https://github.com/MacRuby/MacRuby/commit/741da0312119476ce6b96f989eca5ca5bb270044
  Author: Watson <watson1978 at 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)





More information about the macruby-changes mailing list