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

           Summary: unable to implement interface methods marked by
                    [SpecialName]
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


Testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// gmcs /target:library bug2.cs
using System;
using System.Runtime.CompilerServices;

public interface IPythonContainer {
        [SpecialName]
        int GetLength();
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// gmcs /r:bug2.dll bug.cs
using System;
using System.Reflection;
using System.IO;
using System.Threading;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;

public class StatResult : IPythonContainer {
        public int GetLength () {
                return 0;
        }
}

public class Tests
{
        public static void Main () {
        }
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

This prints:
bug.cs(9,20): error CS0470: Method `StatResult.GetLength()' cannot implement
interface accessor `IPythonContainer.GetLength().set'

MS csc compiles this just fine. This blocks compilation of IronPython
2.0alpha4.


-- 
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