Skip to content

Handle complex assignment #348

@guillaumeduhamel

Description

@guillaumeduhamel

tests/proposal/assign_*.arl

for example:
tests/proposal/assign_record.arl

archetype assign_record

record myrecord {
  x : nat;
  y : string;
  z : int;
}

variable v : myrecord = {0; ""; 0i}

entry exec () {
  v.y := "str";
  const ref : myrecord = {0; "str"; 0i};
  do_require(v = ref, "INVALID_VALUE")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions