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

ConstantCaching_Unqualified2() public method

public ConstantCaching_Unqualified2 ( ) : void
return void
        public void ConstantCaching_Unqualified2() {
            TestOutput(@"
module M
  module N
    i = 0
    while i < 2
      puts defined?(C)                             # tested cache
      const_set(:C, 2) if i == 0 
      i += 1
    end
  end
end
", @"
nil
constant
");
        }
Tests