Bug 317899 (MONO74846) - [PATCH] Missing enum conversion
Summary: [PATCH] Missing enum conversion
Status: RESOLVED FIXED
Alias: MONO74846
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-06 12:13 UTC by Marek Safar
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed fix (501 bytes, patch)
2005-08-30 14:56 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:15:59 UTC


---- Reported by marek.safar@seznam.cz 2005-05-06 05:13:39 MST ----

Steps to reproduce the problem:
1. 
using System;

class C {
	internal enum Flags {
		Removed	= 0,
		Public	= 1
	}

	static Flags	_enumFlags;
		
	public static int Main()
	{	
		Console.WriteLine (Flags.Removed | 0);
		return 0;
	}
}

2. compile & run

Actual Results:

0

Expected Results:

Removed



---- Additional Comments From atsushi@ximian.com 2005-08-30 07:56:07 MST ----

Created an attachment (id=167858)
proposed fix




---- Additional Comments From miguel@ximian.com 2005-09-05 10:49:35 MST ----

This patch can go into mcs.

Please provide a test case in mcs/tests as well





---- Additional Comments From atsushi@ximian.com 2005-09-05 13:46:56 MST ----

Fixed in svn (r49487).

Imported an attachment (id=167858)

Unknown operating system unknown. Setting to default OS "Other".