Skip to content

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

@jubnzv

Description

@jubnzv

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions