Open alaviss opened 2 months ago
The culprit in this case is the call in line 246, with the reduced reproducer being:
proc impl(x: varargs[int], y: varags[bool]) = ...
impl(1 2, false)
sigmatch
turns this call into impl([1, 2, 0], [1, 2, 0])
, which is wrong, and later leads to bogus code being generated (all backends are affected).
Eventually, #1207 will fix this, but an intermediate quick-fix might also be possible. If nothing else, the call could be moved to a separate knownIssue
test.
Example
Actual Output