IronRuby.Tests.Tests.ProcNew2 C# (CSharp) Method

ProcNew2() public method

public ProcNew2 ( ) : void
return void
        public void ProcNew2() {
            TestOutput(@"
class P < Proc
end

def foo
  1.times { |x| $x = P.new }
end

y = lambda { puts 'foo' }
foo(&y)
p $x.object_id == y.object_id
p $x.class
", @"
false
P
");
        }
Tests