[Mono-bugs] [Bug 460712] New: can't compile extension methods with -nostdlib
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 19 08:36:43 EST 2008
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: mono-bugs at lists.ximian.com
ReportedBy: rkvinge at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Repro (any extension method would do I think):
public static class T {
public static void A (this string v, int a) {
}
}
Result:
rolf at 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.
More information about the mono-bugs
mailing list