https://bugzilla.novell.com/show_bug.cgi?id=370577

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=370577#c5


Casey Marshall <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |




--- Comment #5 from Casey Marshall <[EMAIL PROTECTED]>  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
`Program.Foo<string>(System.Func<string,string>)'
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to