[Mono-bugs] [Bug 58657][Blo] Changed - EnumBuilder does not work.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 8 Jun 2004 13:57:51 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by kjambunathan@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58657
--- shadow/58657 2004-05-25 05:45:25.000000000 -0400
+++ shadow/58657.tmp.13809 2004-06-08 13:57:51.000000000 -0400
@@ -77,6 +77,18 @@
(null));
Assert.AreEqual(2, type.GetField("Two").GetValue
(null));
}
}
}
+
+------- Additional Comments From kjambunathan@novell.com 2004-06-08 13:57 -------
+In the assignment statement,
+
+EnumBuilder enumBuilder = module.DefineEnum ("SimpleEnum",
+TypeAttributes.Public, typeof(int));
+
+We parse LValue as of type EnumBuilder while RValue as
+System.Refelection.Emit.EnumBuilder.
+
+So we fail saying that explicit conversion is required.
+