зеркало из https://github.com/mono/mail-archives.git
82 строки
3.2 KiB
HTML
82 строки
3.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:rodolfocampero%40hotmail.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="016493.html">
|
|
<LINK REL="Next" HREF="016495.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</H1>
|
|
<B>Rodolfo Campero
|
|
</B>
|
|
<A HREF="mailto:rodolfocampero%40hotmail.com"
|
|
TITLE="[Mono-list] Possible mcs bug: CS0019 detected for comparable instances">rodolfocampero@hotmail.com
|
|
</A><BR>
|
|
<I>Sat, 18 Oct 2003 13:23:12 +0000</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="016493.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016495.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16494">[ date ]</a>
|
|
<a href="thread.html#16494">[ thread ]</a>
|
|
<a href="subject.html#16494">[ subject ]</a>
|
|
<a href="author.html#16494">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>Hello,
|
|
Thanks Dave and Rahul for validate this problem.
|
|
I already filed a bug report.
|
|
I think the problem may be related to this snippet taken from ECMA-334,
|
|
section 14.9.6:
|
|
|
|
"It is a compile-time error to use the predefined reference type equality
|
|
"operators to compare two references that are known to be different at
|
|
"compile-time. For example, if the compile-time types of the operands
|
|
"are two class types A and B, and if neither A nor B derives from the
|
|
"other, then it would be impossible for the two operands to reference
|
|
"the same object. Thus, the operation is considered a compile-time error.
|
|
|
|
Maybe the implementation considers an interface as a regular class,
|
|
and given the fact that the base class doesn't implement it, mcs complains
|
|
with CS0019; but in fact nothing can be said about an instance referenced
|
|
through an interface.
|
|
|
|
Just my 2 cents in my lurker opinion, I didn't even looked at the code...
|
|
|
|
Greetings and thanks again,
|
|
|
|
Rodolfo
|
|
|
|
_________________________________________________________________
|
|
The new MSN 8: smart spam protection and 2 months FREE*
|
|
<A HREF="http://join.msn.com/?page=features/junkmail">http://join.msn.com/?page=features/junkmail</A>
|
|
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="016493.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016495.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16494">[ date ]</a>
|
|
<a href="thread.html#16494">[ thread ]</a>
|
|
<a href="subject.html#16494">[ subject ]</a>
|
|
<a href="author.html#16494">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|