[Mono-bugs] [Bug 46107][Nor] New - a switch on TypeFundamentals fails to compile

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 10 Jul 2003 15:27:26 -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 jluke@cfl.rr.com.


--- shadow/46107	Thu Jul 10 15:27:26 2003
+++ shadow/46107.tmp.8644	Thu Jul 10 15:27:26 2003
@@ -0,0 +1,59 @@
+Bug#: 46107
+Product: Mono/MCS
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jluke@cfl.rr.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: a switch on TypeFundamentals fails to compile
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When compiling Gtk# cvs with mcs from cvs it fails to compile the following
+where type is an uint:
+switch (type) {
+                case TypeFundamentals.TypeString:
+                    return (string) this;
+                case TypeFundamentals.TypeBoolean:
+                    return (bool) this;
+                case TypeFundamentals.TypeInt:
+                    return (int) this;
+                case TypeFundamentals.TypeDouble:
+                    return (double) this;
+                case TypeFundamentals.TypeFloat:
+                    return (float) this;
+                case TypeFundamentals.TypeChar:
+                    return (char) this;
+                case TypeFundamentals.TypeUInt:
+                    return (uint) this;
+                case TypeFundamentals.TypeObject:
+                    return (GLib.Object) this;
+                default:
+                    throw new Exception ("Unknown type");
+                }
+Steps to reproduce the problem:
+1. Compile gtk-sharp cvs with mcs cvs
+Actual Results:
+Expected Results:
+compile clean
+How often does this happen? 
+Additional Information:
+seems to have begun within the last couple days