Open arnetheduck opened 3 months ago
when nimvm: proc mytest(a: int) = echo a else: template mytest(a: untyped) = echo a + 42 proc xxx() = mytest(100) xxx()
1.6, 2.0
100
142
No response
a variation on #23687
Well the VM evals the toplevel statement and thus the "proc" branch is the active one. It produces the output that I would have predicted.
Description
Nim Version
1.6, 2.0
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response