Rubberduck icon indicating copy to clipboard operation
Rubberduck copied to clipboard

Code Inspections: False report for unassigned variable when Enums are used as parameters

Open FullValueRider opened this issue 3 years ago • 3 comments

Rubberduck version information Version 2.5.2.6039 OS: Microsoft Windows NT 10.0.22000.0, x64 Host Product: Microsoft Office x64 Host Version: 16.0.14729.20260 Host Executable: WINWORD.EXE

Description Enumeration members passed to methods are giving a False Code Inspection of 'Unassigned variable'

RubberDuckEnumsAsVariables

Expected behavior Enumeration members provided as parameters should not give the Unassigned variable result.

FullValueRider avatar Jan 20 '22 11:01 FullValueRider

This seems to be #5848 being reproducible again.

MDoerner avatar Jan 20 '22 11:01 MDoerner

Ah. I'd forgotten I submitted that. On this occasion both the enumeration name and enumeration members are being falsely identified.

FullValueRider avatar Jan 20 '22 12:01 FullValueRider

I am unable to reproduce this.

MDoerner avatar Oct 10 '22 14:10 MDoerner