Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Energeer opened this issue Nov 20, 2022 · 0 comments
Open
Labels
bug Identifies work items for known bugs resolver Issue is easier to resolve with knowledge of the internal resolver API and the Antlr4 parse trees.
Milestone

Comments

@Energeer
Copy link

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.

@Energeer Energeer added the bug Identifies work items for known bugs label Nov 20, 2022
@retailcoder retailcoder added the resolver Issue is easier to resolve with knowledge of the internal resolver API and the Antlr4 parse trees. label Jan 8, 2023
@retailcoder retailcoder added this to the 2.x Cycle milestone Jan 31, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Identifies work items for known bugs resolver Issue is easier to resolve with knowledge of the internal resolver API and the Antlr4 parse trees.
Projects
None yet
Development

No branches or pull requests

2 participants