In the returnTypeIsAssignable method an exception is thrown if the return type of a method is void. This is caused by the SpecimenType class not handling void correctly when building the rawType and genericTypeArguments.
I think modifying the SpecimenType to handle void correctly should correct the original problem.
In the
returnTypeIsAssignable
method an exception is thrown if the return type of a method isvoid
. This is caused by theSpecimenType
class not handlingvoid
correctly when building therawType
andgenericTypeArguments
.I think modifying the
SpecimenType
to handlevoid
correctly should correct the original problem.