My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2: Can't resolve multiple open generic types
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  dbgr...@gmail.com
Closed:  May 2010


Sign in to add a comment
 
Reported by panesofg...@gmail.com, May 11, 2010
What steps will reproduce the problem?
1. Add public class TestTypeRepository : IRepository<TestType> {}
2. Add a test to resolve the TestTypeRepository in addition to the 
StringRespository
3. Run the tests.

What is the expected output? What do you see instead?
I expect I could resolve a repository of any type using the given type; 
instead, the first registered type (alphabetically) is resolved and tries 
to be cast to the correct type, which fails.

What version of the product are you using? On what operating system?
Using trunk as of 5/11/2010 on Windows 7.

Please provide any additional information below.


May 11, 2010
#1 panesofg...@gmail.com
I found the problem, added some tests and created a patch (attached).
ClosingTypeConvention.patch
4.7 KB   View   Download
May 18, 2010
Project Member #2 dbgr...@gmail.com
This issue has been resolved.  Thanks for submitting a patch!
Status: Done
Owner: dbgreer
Sign in to add a comment

Powered by Google Project Hosting