FlexTradeUKLtd / jfixture

JFixture is an open source library based on the popular .NET library, AutoFixture
MIT License
105 stars 22 forks source link

Unable to resolve type for some nested generics #17

Closed richkeenan closed 9 years ago

richkeenan commented 9 years ago

I found a scenario that JFixture doesn't handle, reproducable below when creating an instance of Foo.

public class Foo<T> {
    private Bar<T> bar;
    public Foo(Bar<T> bar) {
        this.bar = bar;
    }
}
public class Bar<T> {
    private T value;
    public Bar(T value) {
        this.value = value;
    }
}

The type name for Bar isn't resolved and so the type itself is lost.