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

GlobalConstants1() public method

The default interop constant_missing looks to scope only if called on Object.
public GlobalConstants1 ( ) : void
return void
        public void GlobalConstants1() {
            TestOutput(@"
class Bar
end

module Foo
end

p defined?(Foo::Bar)
Foo::Bar rescue p $!
", @"
nil
#<NameError: uninitialized constant Foo::Bar>
");
        }
Tests