Codegen fails with conditional operand for arithmetic function #830
Issue DescriptionWhen attempting to use a conditional as an operand for an arithmetic function jank produces an error: Reproduction StepsEval this in repl: (* (if true 1) 2)jank health checkStack traceNo response OS Version InformationFedora 43 I acknowledge that:
|
Answered by
jeaye
Jun 27, 2026
Replies: 3 comments 2 replies
|
Excellent report and minimal repro. I'll get this fixed and tested. |
0 replies
|
Thank you for the rapid fix! I discovered the issue is slightly wider than initially thought: Else branch same type: Else branch different type: Else branch same type, alternate branch different type: Both branches different types: As above but types swapped, same issue but sublty different error message (no |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is all fixed up now. :) Let me know if you have any more issues!