[Mono-bugs] [Bug 81565][Wis] Changed - Selects wrong overload for method containing System.Enum argument

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 8 13:54:49 EDT 2007


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 wasabi at larvalstage.net.

http://bugzilla.ximian.com/show_bug.cgi?id=81565

--- shadow/81565	2007-05-08 13:53:47.000000000 -0400
+++ shadow/81565.tmp.5455	2007-05-08 13:54:49.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 81565
 Product: Mono: Compilers
 Version: 1.2
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: wasabi at larvalstage.net               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -28,6 +28,15 @@
 
                query.SetEnum("accountType", achAccount.Type);
 
 Cannot convert from `string' to `int'(CS1503: Argument 1)
 The best overloaded method match for `NHibernate.IQuery.SetEnum(int,
 System.Enum)' has some invalid arguments(CS1502)
+
+------- Additional Comments From wasabi at larvalstage.net  2007-05-08 13:54 -------
+
+
+                .SetEnum("accountType", (Enum)achAccount.Type);
+
+
+This code compiles correctly. So, it just can't determine the right
+overload based on Enum.


More information about the mono-bugs mailing list