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

Scenario_RubyParams2() public method

public Scenario_RubyParams2 ( ) : void
return void
        public void Scenario_RubyParams2() {
            AssertOutput(delegate() {
                CompilerTest(@"
def foo(a, b, c = a + b, d = c + 1)
  puts a,b,c,d
end

foo(1,2) 
");
            },
            @"
1
2
3
4
");
        }
Tests