AssignedByValParameterInspection shouldn't trigger for reference types unless Set is used #2601
Labels
bug
Identifies work items for known bugs
feature-inspections
inspection-false-positive
A bug where an inspection result appears, even though it is incorrect.
parse-tree-processing
In a
UserForm
withTextBox1
:The
AssignedByValParameterInspection
triggers on this code, butMSForms.ReturnBoolean
is a reference type (why MS, why?). The lineCancel = True
is assigning to the default memberReturnBoolean.Value
. The only reason this inspection should report for reference types is for code like:Set Cancel = New MsForms.ReturnBoolean
Also see #2504 - this points to the need to resolve default member calls on the LHS as well.
The text was updated successfully, but these errors were encountered: