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
A compile error, because the resulting mocked method attempts to pass context as a parameter to the underlying Func.
Suggestion
In the case that parameters are not named, we should create a dummy variable name. a,b, etc is probably fine for unnamed parameters. If users have more than 26 variable names then, well... there are bigger design issues at hand.
The text was updated successfully, but these errors were encountered:
Did
Copied the following struct:
and ran
mokku
, and pasted the result.Expected
A mock struct that compiles.
Got
A compile error, because the resulting mocked method attempts to pass
context
as a parameter to the underlyingFunc
.Suggestion
In the case that parameters are not named, we should create a dummy variable name.
a
,b
, etc is probably fine for unnamed parameters. If users have more than 26 variable names then, well... there are bigger design issues at hand.The text was updated successfully, but these errors were encountered: