mail-archives/mono-bugs/2009-March/086640.html

141 строка
4.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 481258] New: gmcs can not find extensions methods in partial classes
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20481258%5D%20New%3A%20gmcs%20can%20not%20find%20extensions%20methods%0A%20in%20partial%20classes&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="086643.html">
<LINK REL="Next" HREF="086653.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 481258] New: gmcs can not find extensions methods in partial classes</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20481258%5D%20New%3A%20gmcs%20can%20not%20find%20extensions%20methods%0A%20in%20partial%20classes&In-Reply-To="
TITLE="[Mono-bugs] [Bug 481258] New: gmcs can not find extensions methods in partial classes">bugzilla_noreply at novell.com
</A><BR>
<I>Mon Mar 2 19:42:48 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="086643.html">[Mono-bugs] [Bug 481252] ListView + DataPager : incorrect item displayed on &quot;next&quot; link
</A></li>
<LI>Next message: <A HREF="086653.html">[Mono-bugs] [Bug 481258] gmcs can not find extensions methods in partial classes
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#86640">[ date ]</a>
<a href="thread.html#86640">[ thread ]</a>
<a href="subject.html#86640">[ subject ]</a>
<a href="author.html#86640">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=481258">https://bugzilla.novell.com/show_bug.cgi?id=481258</A>
Summary: gmcs can not find extensions methods in partial
classes
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">msafar at novell.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">jbevain at novell.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: ---
Blocks IronPython. Would be nice to have in 2.4.
Repro:
&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
using System;
using System.Collections.Generic;
namespace Foo {
static partial class Extensions {
}
static partial class Extensions {
public static string AsString (this IList&lt;byte&gt; bytes)
{
return &quot;42&quot;;
}
}
}
namespace Bar {
using Foo;
class Program {
static void Main ()
{
Console.WriteLine (Pan (new byte [0]));
}
internal static string Pan (byte [] bytes)
{
return bytes.AsString ();
}
}
}
&lt;&lt;&lt;&lt;&lt;&lt;&lt;
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="086643.html">[Mono-bugs] [Bug 481252] ListView + DataPager : incorrect item displayed on &quot;next&quot; link
</A></li>
<LI>Next message: <A HREF="086653.html">[Mono-bugs] [Bug 481258] gmcs can not find extensions methods in partial classes
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#86640">[ date ]</a>
<a href="thread.html#86640">[ thread ]</a>
<a href="subject.html#86640">[ subject ]</a>
<a href="author.html#86640">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>