[Mono-devel-list] mcs generates incorrect IL-code using declarations after goto

Friedrich Priewasser priewasser at gmx.at
Wed Jun 30 13:12:29 EDT 2004

> Why the heck would anybody want to do that? But anyway, it only happens  
> if you have actualy unreachable code. If you do a conditional goto like  
> the following:


I don't know why the heck anyone should do that, I also don't kwnow why I  
tested this :-)
But you could use "a" after jumping to end (there is a unreachable code  
warning, but it works):

public class Test{
	public static void Main(){
		goto end;
		int a;

Works fine using csc (ok, it makes no sence using goto here too...)


More information about the Mono-devel-list mailing list