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

Dead code analysis for nested unused fields in contract adress types #1182

Open
jubnzv opened this issue Oct 11, 2022 · 0 comments
Open

Dead code analysis for nested unused fields in contract adress types #1182

jubnzv opened this issue Oct 11, 2022 · 0 comments

Comments

@jubnzv
Copy link
Contributor

jubnzv commented Oct 11, 2022

The dead code analyzer could be improved to support recursive definitions like these:

transition tr4
  (
    x :
      ByStr20 with contract
        field y : ByStr20 with contract
          field unused : Uint32, (* should be reported *)
          field used : Int32
        end
      end
  )
  a <-& x.y;
  b <-& a.used
end

See: #1164 (review)

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

No branches or pull requests

1 participant