Rubberduck wants me to assign Object() array with 'Set' keyword #6200
Labels
bug
Identifies work items for known bugs
difficulty-03-duck
Involves more challenging problems and/or developing within and revising the internals API
resolver
Issue is easier to resolve with knowledge of the internal resolver API and the Antlr4 parse trees.
Version 2.5.9.6319
OS: Microsoft Windows NT 10.0.19045.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.17029.20140
Host Executable: EXCEL.EXE
For demonstration use this Module code:
Description
This code compiles and runs.
Rubberduck gives me 3 Code Inspection Errors:
This refers to line
Public Property Get ObjectArray() As Object()
This refers to line
ObjectArray = myObjectArray
This refers to line
oArr2 = ObjectArray
and may be related to ByRef Array of Objects Parameters, Inspection False Positives #6094If I use the 'Set' keyword in front of
ObjectArray = myObjectArray
and in front ofoArr2 = ObjectArray
Rubberduck is satisfied and does not report any errors. But it does not compile, of course.The text was updated successfully, but these errors were encountered: