Skip to content

"Go to references" on a variable that a Using overwrites includes references to the Using's struct's field #57

@harrisont

Description

@harrisont

I'm unsure if this is actually undesired behavior or not - I'll need to ponder it.

Repro

"Go to references" on the .A of the .A = 3 statement in:

.A = 3
Print( 'Before $A$' )

.MyStruct = [
    .A = 1
]

Using( .MyStruct )
Print( 'After $A$' )

Expected

3 references:

  • .A = 3
  • Print( 'Before $A$' )
  • Using( .MyStruct )

Actual

5 references:

  • .A = 1
  • .A = 3
  • Print( 'Before $A$' )
  • Using( .MyStruct )
  • Print( 'After $A$' )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions