[Mono-bugs] [Bug 75713][Wis] New - Duplicate errors for Foo ()
where Foo does not exist
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Aug 4 13:52:12 EDT 2005
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 bmaurer at users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=75713
--- shadow/75713 2005-08-04 13:52:12.000000000 -0400
+++ shadow/75713.tmp.8420 2005-08-04 13:52:12.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 75713
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: bmaurer at users.sf.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Duplicate errors for Foo () where Foo does not exist
+
+class X {
+ static void Main ()
+ {
+ Foo ();
+ }
+}
+
+[benm at omega ~]$ mcs asdf.cs
+asdf.cs(4) error CS0246: The type or namespace name `Foo' could not be
+found. Are you missing a using directive or an assembly reference?
+asdf.cs(4) error CS0103: The name `Foo' does not exist in the context of `X'
+Compilation failed: 2 error(s), 0 warnings
+
+C:\Documents and Settings\bmaurer\share>csc asdf.cs
+Microsoft (R) Visual C# 2005 Compiler version 8.00.50215.44
+for Microsoft (R) Windows (R) 2005 Framework version 2.0.50215
+Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
+
+asdf.cs(4,3): error CS0103: The name 'Foo' does not exist in the current
+context
+
+C:\Documents and Settings\bmaurer\share>csc asdf.cs
+Microsoft (R) Visual C# .NET Compiler version 7.10.6310.4
+for Microsoft (R) .NET Framework version 1.1.4322
+Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
+
+asdf.cs(4,3): error CS0103: The name 'Foo' does not exist in the class or
+ namespace 'X'
+
+We are verbose and emit two warnings, whereas microsoft emits one.
More information about the mono-bugs
mailing list