I am having this error on solc version 0.6.0
.
Basically I am returning length of the list and subtract 1 from it, where that value will be assigned to an uint
variable.
In general this command used to return the length of the list after the push:
uint length = list.push(Struct({val: value}))
TypeError: Operator - not compatible with types tuple() and int_const 1
uint32 value = uint32(list.push(Interval({endpoint: startTime})) - 1);
I was not getting this error or solc-v0.5.*
.
I feel like tuples does not return their length any more.
[Q] How could I fix this error?