Rubberduck
Rubberduck copied to clipboard
Inspection for value assignments/implicit default member reads from `New`ed up objects
The following are valid syntax forms:
Dim y As String
y = New Application
If Len(New Application) Then
Beep
End If
Both rely on the default property of Application being a valid, implied property read, but both instances discard the reference to the newly created object.
See also #3035