Closed emilioplatzer closed 1 year ago
Hello Emilio,
Thanks for your detailed bug report. I was able to reproduce the problem using gobco 1.0.1. About 3 weeks ago, I discovered the completely buggy instrumentation of the switch
statement myself, wondered why nobody had reported it in the last few years, and fixed it.
Please try again with the master
branch, that worked for me. It could be that there are a few edge cases left that don't work. I will add a comprehensive and systematic test suite later.
Best, Roland
Fixed in gobco 1.0.2, released yesterday.
Tested ok!. Thanks!
I tried with the switch example in A Tour of Go. It seems that the assigment inside the switch is cousing problems (I tried moving it outside and it works).
The output is:
Complete code: