Open guillaumeduhamel opened 2 years ago
archetype no_acces_to_field_in_partition
asset a {
k : nat;
v : string;
}
asset b {
n : nat;
p : partition<a>;
}
variable res : string = ""
entry exec () {
res := b[0].p[0].v
// res := a[0].v
}
same issue as in:
record visitor {
name : string;
nbvisits : nat = 0;
lastVisit : date = 1970-01-01;
}
asset visitors {
login : address;
info : visitor;
}
...
visitors[caller].info.nbvisits += 1;
tests/proposal-type-errors/no_acces_to_field_in_partition.arl