[dev] Macro function replacements are sometimes incorrect
Closed this issue · 1 comments
TropicSapling commented
Example:
macro func force_positive (int n) {
if n >= 0 {
println "OK: Good to go!";
return 3 + 4 * 5;
} else {
println "WARNING: Number is negative, converting into positive";
return 0-n;
}
}
This should replace with 3 + 4 * 5
, which it does, but the child is set to 3
so it gets wrong.
TropicSapling commented
This has been fixed now 🙂