You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The reflection baker fails with a Linq exception (enumeration contains more than one element when using SingleOrDefault) when operating on a type that has a method with the same name as a method with an [Inject] attribute.
To Reproduce
Run baker in Editor with a class like
public class MyClass
{
public void Init() {}
[Zenject.Inject]
public void Init(Foo foo){}
}
Expected Behavior *
Duplicate names should not be an issue because the weaver should look up a method by metadata (e.g. signature, attributes) not strictly by name.
Zenject version: 9.1.0
Unity version: 2019.4.40
Project's scripting backend: Mono 4.x
The text was updated successfully, but these errors were encountered:
Describe the bug
The reflection baker fails with a Linq exception (enumeration contains more than one element when using SingleOrDefault) when operating on a type that has a method with the same name as a method with an [Inject] attribute.
To Reproduce
Run baker in Editor with a class like
Duplicate names should not be an issue because the weaver should look up a method by metadata (e.g. signature, attributes) not strictly by name.
The text was updated successfully, but these errors were encountered: