Bugs: Browse | Submit New | Admin

[#20033] problem resolving generic type when a non generic type with the same name exists

Date:
2008-05-08 10:50
Priority:
1
Submitted By:
Steve Eichert (eichert12)
Assigned To:
Jim Deville (jredville)
Category:
Core Language
State:
Closed
Summary:
problem resolving generic type when a non generic type with the same name exists

Detailed description
IronRuby is unable to resolve a generic type when a non generic type with the same name exists.  The specific example
that I discovered the bug with is when trying to use Moq [1].

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
  end
end

Moq has a generic and non generic version of the Mock class.  When I try and run the code above it tells me that Moq.Mock
is not a generic type.

[1] http://code.google.com/p/moq/

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-05-28 00:44
Sender: Tomas Matousek

Fix ready.
Date: 2008-05-16 17:11
Sender: Olivier Coursiere

ChannelFactory class in System.ServiceModel (WCF) has the same
problem : a generic type and a non generic type with the same
name.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2009-03-31 02:192009-03-31 02:19jredville
resolution_idNone2009-03-31 02:19jredville
status_idOpen2009-03-31 02:19jredville
assigned_totmat2008-05-28 00:44tmat
priority32008-05-10 20:37tmat
assigned_tonone2008-05-08 11:23jlam