[Mono-bugs] [Bug 328022] New: unable to implement interface methods marked by [ SpecialName]
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Sep 24 18:42:52 EDT 2007
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: rharinath at novell.com
ReportedBy: vargaz at gmail.com
QAContact: mono-bugs at ximian.com
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.
More information about the mono-bugs
mailing list