The type workaround for the function append sets the same type for the argument as the type of the result. This leads to undefined behavior since we then use a memory.copy with the size of the result instead of the size of the argument.
Here is a failing example with the append function:
The type workaround for the function
append
sets the same type for the argument as the type of the result. This leads to undefined behavior since we then use amemory.copy
with the size of the result instead of the size of the argument.Here is a failing example with the append function: