public void ProcNew1() { AssertOutput(delegate() { CompilerTest(@" def foo 1.times { |x| $x = Proc.new } end y = lambda { puts 'foo' } foo(&y) p $x.object_id == y.object_id "); }, @"true"); }