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

RubyBlocks14C() public method

Covers RubyOps.YieldBlockBreak error path.
public RubyBlocks14C ( ) : void
return void
        public void RubyBlocks14C() {
            TestOutputWithEval(@"
def proc_conv(&b)
  $x = b
end

def y
  1.times { #<yield#> rescue p $! }   # proc-converter is not active any more, hence error
end

def foo
  proc_conv { break }
  y(&$x)
end

foo
", @"
#<LocalJumpError: break from proc-closure>
");
        }
Tests