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

Class variables accessed via intermedate variable flagged as unused #1150

Closed
stefandrissen opened this issue Dec 12, 2024 · 2 comments
Closed
Assignees
Labels

Comments

@stefandrissen
Copy link

I dislike noise, visual designer code is littered with this-object:, so I added an intermediate variable o and assigned it this-object. All variables were then flagged as unused.

class foo:

   var integer bar.
   var integer bar-this-object.
   var integer bar-o. // <-- flagged as unused

   constructor foo ():

      var foo o.

      bar = 1.
      message bar.

      this-object:bar-this-object = 2.
      message this-object:bar-this-object.

      o = this-object.
      o:bar-o = 3.
      message o:bar-o.

   end constructor.

end class.
@gquerret gquerret self-assigned this Dec 12, 2024
@gquerret gquerret added the CABL label Dec 12, 2024 — with Linear
Copy link
Contributor

Confirmed, will be fixed

gquerret added a commit that referenced this issue Dec 16, 2024
@gquerret
Copy link
Contributor

Fixed as part of #591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants