Closed dplassgit closed 10 months ago
a: proc { println "hi" } b: proc { x = a() } b()
should print "hi" but it does not because x=a() is completely eliminated because x is considered dead
x=a()
x
A workaround is to just remove the assignment, e.g., a()
a()
The workaround works because naked proc calls generate different code than proc calls whose return value is read.
should print "hi" but it does not because
x=a()
is completely eliminated becausex
is considered dead