[Mono-list] Bug Report: mint/jit and switch/case fall through

Adam Treat manyoso@yahoo.com
Mon, 18 Feb 2002 01:18:49 -0800


Hello,

Noticed a bug in mint/mono for the switch/case statement and fall through.  
The example test below shows the crux of the problem.  When executed with 
mint/jit the "passed" string is not written to stdout when the "test" string 
is given as an argument.  This is also why mcs can't compile dll's when run 
with mint or mono ;-)

using System;

public class fall_through {

	public static void Main(string[] args)
	{
		foreach(string str in args)
		{
			Console.WriteLine(str);

			switch(str)
			{
				case "test":
					Console.WriteLine("passed");
   					continue;

				default:
					return;
	    		}
		}
	}
}