[Mono-bugs] Using snapshot of Feb-24-02

FC AI f_ai@hotmail.com
Mon, 25 Feb 2002 23:55:06 +0000


This is a multi-part message in MIME format.

------=_NextPart_000_2b19_5636_7984
Content-Type: text/plain; format=flowed

Hi,

I've been testing the mono c# compiler and i found a couple of problems 
regarding the enum's.

Attached is the C# code to reproduce the problem.


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

------=_NextPart_000_2b19_5636_7984
Content-Type: text/plain; name="En_Const.cs"; format=flowed
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="En_Const.cs"

/*
* Desciption:
* Crash when defining 'b', it is the 'const' that forces the error, 'a' is 
fine
*
*/

namespace N1
{
	public enum A
	{
		A_1, A_2, A_3
	}

	public class B
	{
		A a = A.A_1;
		const A b = A.A_1;
	}
}


------=_NextPart_000_2b19_5636_7984
Content-Type: text/plain; name="En_Init.cs"; format=flowed
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="En_Init.cs"

/*
* Desciption:
* Crash defining 'A'
* Crash defining 'B'
* Crash defining 'C'
*/

namespace N1
{
	public enum A
	{
		A_1, A_2, A_3 = A_1 + A_2
	}

	public enum B
	{
		B_1, B_2, B_3 = A.A_1
	}

	public enum C
	{
		B_1, B_2, B_3 = N1.A.A_1
	}
}

------=_NextPart_000_2b19_5636_7984--