Closed sjatsh closed 1 year ago
It looks like it should be self.field_count()
, @yangby-cryptape
This piece of code is correct, but it could be optimized off in the code generator.
The condition slice_len == 4
is satisfied if and only if when the table
is defined with no fields.
If u define a empty table, such as:
table EmptyTable {}
If slice_len == 4
, it could return a Ok(_)
.
But if a table has at least 1 field, it has to return an Err(_)
.