Open hdwalters opened 1 month ago
The solution to this may fall out of @Ph0enixKM's proposed translation layer, if it can generate temporary Bash variable names.
Just stumbled upon this one. With the shorthand add operator, it simply fails to append.
let verification = "eeded"
fun test(ref the_bug: Text): Null {
the_bug += verification
}
main {
let the_bug = "Succ"
test(the_bug)
echo the_bug // Outputs "Succ"
}
Yep, that would do it; the_bug
is the same in both function and main
block. I don't think it's worth trying to fix anything until @Ph0enixKM has done his translation layer thingy though.
Describe the bug If a function declares a variable by reference, but an identically named variable exists in another scope, the value is not returned correctly.
To Reproduce Run the following script to reproduce:
Expected behavior The script above should behave as it does if a different variable name is used:
Additional context N/A