extentreports-csharp icon indicating copy to clipboard operation
extentreports-csharp copied to clipboard

Error "The type 'System.void' may not be used as a type argument" Extent Report for mac

Open Moshex opened this issue 4 years ago • 0 comments

Screen Shot 2021-05-11 at 2 08 21 PM

I am getting the above error after the "extent.Flush();" is hit. is there a way to fix this error in order to get the report to generate? any help would be nice!

The Code that it's hitting is here:

private static void ThrowIfTypeNeverValidGenericArgument(RuntimeType type) { if (type.IsPointer || type.IsByRef || type == typeof(void)) throw new ArgumentException( Environment.GetResourceString("Argument_NeverValidGenericArgument", type.ToString())); }

Moshex avatar May 11 '21 20:05 Moshex