[Mono-bugs] [Bug 403518] New: ThreadStart delegate compiler error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 24 19:48:36 EDT 2008


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


           Summary: ThreadStart delegate compiler error
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: sanfordarmstrong at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


This class compiles fine with csc 8.00.50727.1433 and gmcs 1.9.1.0, but fails
with gmcs from SVN r106549 (reported as 1.9.0 by gmcs --version).

using System;
using System.Threading;

public class DelegateTest {

        public static void Main () {
                Thread t = new Thread (new ParameterizedThreadStart (delegate {
                        Console.WriteLine ("Hello there");
                }));
                t.Start ();
        }
}



And here is the error:

DelegateTest.cs(7,28): error CS0121: The call is ambiguous between the
following methods or properties:
`System.Threading.Thread.Thread(System.Threading.ParameterizedThreadStart)' and
`System.Threading.Thread.Thread(System.Threading.ThreadStart)'
/opt/mono/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous
error)
/opt/mono/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous
error)
Compilation failed: 1 error(s), 0 warnings


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


More information about the mono-bugs mailing list