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

ProcNew1() public method

public ProcNew1 ( ) : void
return void
        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");
        }
Tests