Closed lcahmu closed 3 months ago
It's the same piece of code I had to touch for #575. Hm, I'm wondering what my thinking at the time was. Hopefully, I was just being too lazy to jump through all the hoops as I do now.
Could be fixed with https://github.com/jqwik-team/jqwik/commit/ba4c9cf74d09a58ce98d1cec8010152079226cbe
Has been published as 1.9.0-SNAPSHOT
Please re-open if issue still occurs
Testing Problem
@Provide
methods with generic type parameters are apparently sensitive to the name of the type parameter. For example, the following fails at runtime under 1.8.5 and 1.9.0-SNAPSHOT (4d419a3). A more realistic scenario would be for a domain-specific wrapper type rather thanOptional
, butOptional
is convenient for demonstration purposes.Updating the type variable names from either method to match the other works around the error:
This can get pretty clunky in cases where separate parameters are necessary. For example:
Suggested Solution
The name of the type parameter should not be considered for matching purposes.