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


           Summary: can't compile extension methods with -nostdlib
           Product: Mono: Compilers
           Version: SVN
          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: ---


Repro (any extension method would do I think):

public static class T {
        public static void A (this string v, int a) {
        }
}

Result:
r...@linux:> gmcs test.cs -target:library -nostdlib -r:mscorlib.dll
-r:System.Core.dll 
test.cs(2,28): error CS1110: `T.A(this string, int)': Extension methods cannot
be declared without a reference to System.Core.dll assembly. Add the assembly
reference or remove `this' modifer from the first parameter


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to