Bugzilla – Bug 318653
[PATCH] Duplicate errors for Foo () where Foo does not exist
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by bmaurer@users.sf.net 2005-08-04 13:52:12 MST ---- class X { static void Main () { Foo (); } } [benm@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. ---- Additional Comments From atsushi@ximian.com 2005-08-30 07:20:51 MST ---- Created an attachment (id=168313) proposed fix ---- Additional Comments From marek.safar@seznam.cz 2006-04-07 17:48:09 MST ---- It's already fixed in SVN HEAD. Imported an attachment (id=168313) Unknown operating system unknown. Setting to default OS "Other".