[Mono-bugs] [Bug 357255] New: gmcs has no support for friend assemblies [ blocks IronPython]

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 30 09:19:42 EST 2008


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


           Summary: gmcs has no support for friend assemblies [blocks
                    IronPython]
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: vargaz at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<< bug1.cs <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// gmcs /target:library bug1.cs
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;

[assembly: InternalsVisibleTo("bug2")]

public class Test1
{
        internal virtual bool TryGetValue2(object instance) {
                return false;
        }
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<< bug2.cs <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// gmcs /r:bug1.dll /out:bug2.exe bug2.cs
using System;

public class Test2 : Test1
{
        internal override bool TryGetValue2(object instance) {
                return false;
        }

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

csc compiles this just fine, while gmcs prints:
bug2.cs(5,32): error CS0115: `Test2.TryGetValue2(object)' is marked as an
override but no suitable method found to override
Compilation failed: 1 error(s), 0 warnings

This prevents compilation of IronPython-2.0A8.


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