## Adapted from IronRuby tests: Runtime\Class\test_const.rb
class Foo
CONST = 1
end
f = Foo.new
puts f::CONST ## should raise TypeError
The attempt to access CONST on an instance should raise a TypeError, but
instead we get a System.InvalidCastException.
Original issue reported on code.google.com by meaningi...@gmail.com on 30 Aug 2007 at 5:27
Original issue reported on code.google.com by
meaningi...@gmail.com
on 30 Aug 2007 at 5:27