haven't forgotten about this issue.
Quite a lot of little things had to be improved for this to work, but as with all improvements, the result is an even more powerful API! :smile:
When called parameter is passed by value, the
ByRef parameter being passed there can be passed by value if it's a "primitive type":
When called parameter is passed by reference, the
ByRef parameter being passed there can't be passed by value without breaking the code, so there's no inspection result for it:
Same if the
ByRef parameter is passed to a
ByRef parameter that's assigned - except now neither
bar can be passed by value here:
Rubberduck will not suggest to pass
Variant and object types by value.
See commit 580fcca235eb877a6e2fc0e676d8154b24ef3aad on my fork; this issue will be closed when I merge my changes in.