title: uninitialized constant A::B (NameError)
body: <p>This works:</p>
  
  <pre><code>class A
      def m1
           b = B.new
      end
  end
  
  class B
  end
  </code></pre>
  
  <p>This fails - why?</p>
  
  <pre><code>class A
     b = B.new
  end
  
  class B
  end
  </code></pre>
  
  <p>Error message "'': uninitialized constant A::B (NameError)" is rased.</p>