Describe the bug
The following literal handling is incorrectly code generated in functions but correctly translated in activities.
module
struct S
var i: int32
var bs: [1] bool
end
function funcWithS ()
let bs: [1] bool = { [0] = true }
var s: S = {i = 42, bs = bs}
end
activity ActWithS()
let bs: [1] bool = { [0] = true }
var s: S = {i = 42, bs = bs}
await true
end
Describe the bug The following literal handling is incorrectly code generated in functions but correctly translated in activities.
To Reproduce The following code is generated
Expected behaviour In the translated function the assignment
should be a
memcpy
similar to the translated activity