[Mono-bugs] [Bug 370577] gmcs is confused by generics methods with the same name when one returns void

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 8 21:46:00 EDT 2008


User cmarshall at pacificbiosciences.com added comment

Casey Marshall <cmarshall at pacificbiosciences.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |cmarshall at pacificbiosciences.com
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |

--- Comment #5 from Casey Marshall <cmarshall at pacificbiosciences.com>  2008-04-08 19:46:00 MST ---
I don't think the fix in SVN is correct (it appears to cause bug 378189).

The error message I get is:

pr370577.cs(18,24): error CS0121: The call is ambiguous between the following
methods or properties: `Program.Foo(System.Action<string>)' and
pr370577.cs(6,21): (Location of the symbol related to previous error)
pr370577.cs(11,18): (Location of the symbol related to previous error)

Since Bar returns whatever 'Foo' returns, the compiler can't possibly choose
'void Foo(Action<string>)' as the correct function. The fix checked in for this
seems to only check if the context returns void, that the invocation return
void too.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list