-
Notifications
You must be signed in to change notification settings - Fork 316
Closed
Labels
bugIdentifies work items for known bugsIdentifies work items for known bugsfeature-inspectionsinspection-false-positiveA bug where an inspection result appears, even though it is incorrect.A bug where an inspection result appears, even though it is incorrect.
Description
Rubberduck version information
Version 2.5.0.5384
OS: Microsoft Windows NT 10.0.17134.0, x64
Host Product: Microsoft Office 2016 x64
Host Version: 16.0.4966.1000
Host Executable: EXCEL.EXE
Description
I have 2 false positive let inspections on accessors that are used within the class module
To Reproduce
Steps to reproduce the behavior:
In a class module, I have, among others:
Private pCurrentReportRow As Long
Private pPageNumber As Long
Public Property Let PageNumber(ByVal Value As Long)
pPageNumber = Value
End Property
Public Property Let CurrentReportRow(ByVal Value As Long)
pCurrentReportRow = Value
End Property
Private Sub Class_Initialize()
'other initialization statements here
CurrentReportRow = 1
PageNumber = 1
End Sub
Expected behavior
Since the let accessors are used to assign these values, instead of assigning to their backing fields, they are used and should, therefore, not trigger an inspection.
Screenshots
N/A
Logfile
RubberduckLog.txt
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugIdentifies work items for known bugsIdentifies work items for known bugsfeature-inspectionsinspection-false-positiveA bug where an inspection result appears, even though it is incorrect.A bug where an inspection result appears, even though it is incorrect.