Skip to content

Property let accessor is not used - Let property referring to let property #6053

@Energeer

Description

@Energeer

Rubberduck version information

Rubberduck version [2.5.2.6080]
Operating System: [Microsoft Windows NT 10.0.19044.0, x64]
Host Product: [Microsoft Office x64]
Host Version: [16.0.15726.20202]
Host Executable: [EXCEL.EXE]

Description
Inspection false positive when using a let property to refer to another let property.

To Reproduce

  1. Causes "Property let accessor 'Test' is not used.":
Private Value As String

Private Property Get Test() As String
    Test = Value
End Property

Private Property Let Test(ByVal RHS As String)
    Value = RHS
End Property

Public Property Let DuplicateTest(ByVal RHS As Double)
    Test = RHS
End Property

Expected behavior
No "is not used" inspection on Let Test

Additional context
When using Find all references on Test within DuplicateTest the reference is Get Test when it should really be Let Test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIdentifies work items for known bugsresolverIssue is easier to resolve with knowledge of the internal resolver API and the Antlr4 parse trees.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions