Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Member not found inspection doesn't fire for With Block variables #3343

Closed
ThunderFrame opened this issue Sep 1, 2017 · 0 comments
Closed
Assignees
Labels
bug Identifies work items for known bugs feature-inspections

Comments

@ThunderFrame
Copy link
Member

The member not found inspection fires for early-bound variables, but not for With Block variables:

Sub test1()
  
  Dim coll As Collection
  Set coll = New Collection
  
  Debug.Print coll.FooBar 'Member not found
  
  With coll
    Debug.Print .FooBar 'Member not found
  End With

  With New Collection
    Debug.Print .FooBar 'No inspection
  End With

End Sub
@ThunderFrame ThunderFrame added bug Identifies work items for known bugs feature-inspections labels Sep 1, 2017
@comintern comintern self-assigned this Jul 17, 2018
retailcoder added a commit that referenced this issue Jul 19, 2018
Test for anonymous object access in With blocks. Fixes #3343
Semi-automatic bug tracker automation moved this from ToDo to Done Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies work items for known bugs feature-inspections
Projects
Development

No branches or pull requests

2 participants