kevingadd/JSIL — Issue #47: ComplexSwitch.cs produces code with gotos
Author: kevingadd
Created: 2011-12-12 01:28:50+00:00
State: open

When translated, https://github.com/kevingadd/JSIL/blob/master/Tests/TestCases/ComplexSwitch.cs produces code with gotos even though it really shouldn't need to. The problem appears to be that the C# compiler inserts a case for '1' that jumps to the default block, resulting in two jumps to a single target. As a result, the ILSpy decompilation pipeline leaves those gotos in place.

I think this can be addressed using a variation on the solution to issue #39.