Statary / google-gin

Automatically exported from code.google.com/p/google-gin
0 stars 0 forks source link

Gin does not throw an error for ambiguous @Assisted parameters #174

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an @Assisted factory method that takes two unnamed booleans and a 
matching @Inject constructor.

What is the expected output? What do you see instead?
I expect an error, since the two are ambiguous. Instead, Gin passes the first 
argument to the factory method to both of the @Assisted constructor parameters.

Original issue reported on code.google.com by hes...@google.com on 13 Mar 2012 at 8:01