IronRuby seems to be having a problem resolving a generic type when a
generic type with the same name exists. The specific example that I
discovered the bug with is when trying to using Moq .
describe “some class with a mock” do
it “should use the mock” do
mock = Mock.of(IMyMock).new
my_class = MyClass.new(mock)
// … test stuff
Moq has a generic and non generic version of the Mock class. When I try
run the code above it tells me that Moq.Mock is not a generic type.
digging through the code a bit it looks like this should be handled my
Microsoft.Scripting.Action.TypeGroup. I haven’t been able to uncover
IronRuby makes use of this as of yet. Is this a known bug, or should I
submit a bug on rubyforge…or am I doing something wrong?