Bug 318653 (MONO75713) - [PATCH] Duplicate errors for Foo () where Foo does not exist
Summary: [PATCH] Duplicate errors for Foo () where Foo does not exist
Status: RESOLVED FIXED
Alias: MONO75713
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 20:52 UTC by Ben Maurer
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed fix (391 bytes, patch)
2005-08-30 14:20 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:26:37 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".