[Mono-bugs] [Bug 73219][Cos] New - typo and bug in duplicate type name warning message
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Mar 2005 11:26:44 -0500 (EST)
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 danw@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=73219
--- shadow/73219 2005-03-02 11:26:44.000000000 -0500
+++ shadow/73219.tmp.2615 2005-03-02 11:26:44.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 73219
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Cosmetic
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: danw@novell.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: typo and bug in duplicate type name warning message
+
+given
+
+ namespace Foo {
+ public class Int32 {}
+
+ public class FooMain {
+
+ public static void Main ()
+ {
+ System.Int32 blah = new Int32 ();
+ }
+ }
+ }
+
+mcs will complain:
+
+ /tmp/foo.cs(8) error CS0029: Cannot convert implicitly from `Foo.Int32' to
+`int'
+ /tmp/foo.cs(8) The type foo, Culture=neutral has two conflicting
+definitons, one comes from foo, Culture=neutral and the other from
+mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089error
+
+which contains both a typo ("definitons") and a bug (it prints the
+first assembly name twice rather than printing the type name and then
+the assembly name).