[MacRuby] #1285: Constants missing error when the constants are declared in the class definition

MacRuby ruby-noreply at macosforge.org
Wed May 18 17:01:31 PDT 2011


#1285: Constants missing error when the constants are declared in the class
definition
----------------------------+-----------------------------------------------
 Reporter:  tglee@…         |       Owner:  lsansonetti@…        
     Type:  defect          |      Status:  new                  
 Priority:  blocker         |   Milestone:                       
Component:  MacRuby         |    Keywords:                       
----------------------------+-----------------------------------------------

Comment(by lsansonetti@…):

 Thanks a lot! Here is a reduction:

 {{{
 $ ./miniruby -e "framework 'AppKit'; class Foo<NSView; FOO=42; def
 foo;FOO;end; end; p Foo.new.performSelector(:foo)"
 -e:1:in `<main>': uninitialized constant FOO (NameError)
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:4>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list