[Mono-bugs] [Bug 600326] New: {g, d}mcs fails to inherit an internal static method from abstract base class

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 27 20:15:29 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=600326

http://bugzilla.novell.com/show_bug.cgi?id=600326#c0


           Summary: {g,d}mcs fails to inherit an internal static method
                    from abstract base class
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mhabersack at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=357267)
 --> (http://bugzilla.novell.com/attachment.cgi?id=357267)
inheritance_bug.cs

The attached test case actually demonstrates two issues:

1. Compiling the code with just {g,d}mcs inheritance_bug.cs gives the following
result on Mono:

$ gmcs inheritance_bug.cs 
inheritance_bug.cs(26,25): error CS1501: No overload for method `EndExecute'
takes `3' arguments
Compilation failed: 1 error(s), 0 warnings

While the compilation works just fine with csc (tested with VS2008 and VS2010).
This bug prevents OData client libraries compilation on Mono/trunk

2. If compiled with {g,d}mcs -d:TYPE_INFERENCE, gmcs gives the same error as
above, while .NET reports:

C:\temp\inheritance>csc -d:TYPE_INFERENCE inheritance_bug.cs
Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

inheritance_bug.cs(24,3): error CS0411: The type arguments for method
        'Base.EndExecute<T>(object, string, System.IAsyncResult)' cannot be
        inferred from the usage. Try specifying the type arguments explicitly.

-- 
Configure bugmail: http://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