зеркало из https://github.com/mono/mail-archives.git
221 строка
9.7 KiB
HTML
221 строка
9.7 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:davejp%40volny.cz">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="016504.html">
|
|
<LINK REL="Next" HREF="016494.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</H1>
|
|
<B>davejp@volny.cz
|
|
</B>
|
|
<A HREF="mailto:davejp%40volny.cz"
|
|
TITLE="[Mono-list] Possible mcs bug: CS0019 detected for comparable instances">davejp@volny.cz
|
|
</A><BR>
|
|
<I>Sat, 18 Oct 2003 10:45:50 +0200 (CEST)</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="016504.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable
|
|
instances
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016494.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16493">[ date ]</a>
|
|
<a href="thread.html#16493">[ thread ]</a>
|
|
<a href="subject.html#16493">[ subject ]</a>
|
|
<a href="author.html#16493">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>--=_f6de8c575d18949531209b78e4bf60b1
|
|
Content-Type: text/plain; charset="iso-8859-2"
|
|
Content-Transfer-Encoding: 7bit
|
|
|
|
I tried it in Visual Studio .NET 2003.
|
|
Compilation successful.
|
|
Output:
|
|
Is this wrong? False
|
|
|
|
Help says:
|
|
"For reference types other than string, == returns true if its
|
|
two operands refer to the same object."
|
|
Both baseRef and interfaceRef refer to the same
|
|
Test.DerivedClass()
|
|
|
|
|
|
><i> -----Original Message-----
|
|
</I>><i> From: <A HREF="mailto:mono-list-admin@lists.ximian.com">mono-list-admin@lists.ximian.com</A> [mailto:mono-list-
|
|
</I>><i> <A HREF="mailto:admin@lists.ximian.com">admin@lists.ximian.com</A>] On Behalf Of Rodolfo Campero
|
|
</I>><i> Sent: Saturday, October 18, 2003 1:19 AM
|
|
</I>><i> To: <A HREF="mailto:mono-list@lists.ximian.com">mono-list@lists.ximian.com</A>
|
|
</I>><i> Subject: [Mono-list] Possible mcs bug: CS0019 detected for
|
|
</I>comparable > instances
|
|
><i>
|
|
</I>><i> Hello,
|
|
</I>><i> I'm trying to port an application I'm developing at work. Over
|
|
</I>there we > use
|
|
><i> Microsoft .Net SDK.
|
|
</I>><i> When I tried to compile it in mono I got:
|
|
</I>><i>
|
|
</I>><i> error CS0019: Operator != cannot be applied to operands of
|
|
</I>type > `xxx' and
|
|
><i> `yyy'
|
|
</I>><i>
|
|
</I>><i> I've narrowed down the problem and the smallest program which
|
|
</I>reproduces > the
|
|
><i> error is the following one:
|
|
</I>><i>
|
|
</I>><i> using System;
|
|
</I>><i> namespace Test {
|
|
</I>><i> public class Test {
|
|
</I>><i> public static void Main(string[] args) {
|
|
</I>><i> BaseClass baseRef = new DerivedClass();
|
|
</I>><i> ITest interfaceRef = (ITest)baseRef;
|
|
</I>><i> Console.WriteLine("Is this wrong? {0}",
|
|
</I>><i> (interfaceRef!=baseRef));
|
|
</I>><i> }
|
|
</I>><i> }
|
|
</I>><i>
|
|
</I>><i> public interface ITest {}
|
|
</I>><i>
|
|
</I>><i> public class BaseClass {}
|
|
</I>><i>
|
|
</I>><i> public class DerivedClass: BaseClass, ITest {}
|
|
</I>><i> }
|
|
</I>><i>
|
|
</I>><i> Actually, I haven't checked this narrowed-down version in
|
|
</I>Windows, so if a > gentle soul can do this for me in order to
|
|
prove that it works I'll > appreciate
|
|
><i> it.
|
|
</I>><i> I've searched bugzilla for this bug but I didn't found it. If
|
|
</I>it's right > to
|
|
><i> you, I'll file a bug report after someone verify that the code
|
|
</I>works in > Windows.
|
|
><i> I'm using a recent CVS version of mcs and mono, in a RedHat 9
|
|
</I>box. > I have a workaround for this problem, so I'm not pressed
|
|
with this one... > just
|
|
><i> wanted to let you know.
|
|
</I>><i>
|
|
</I>><i> Thanks in advance,
|
|
</I>><i>
|
|
</I>><i> Rodolfo
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>_________________________________________________________________
|
|
><i> Add photos to your messages with MSN 8. Get 2 months FREE*.
|
|
</I>><i> <A HREF="http://join.msn.com/?page=features/featuredemail">http://join.msn.com/?page=features/featuredemail</A>
|
|
</I>><i>
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
|
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
|
|
</I>
|
|
|
|
--
|
|
Potrebujete vice prostoru pro vase stranky?
|
|
Ptejte se na <A HREF="http://sluzby.volny.cz/cs/product/ftp_paid">http://sluzby.volny.cz/cs/product/ftp_paid</A>
|
|
|
|
|
|
--=_f6de8c575d18949531209b78e4bf60b1
|
|
Content-Type: application/ms-tnef
|
|
Content-Transfer-Encoding: base64
|
|
Content-Disposition: attachment; filename="winmail.dat"
|
|
|
|
eJ8+IgwIAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA4gQAAAAAAADmAAEIgAcA
|
|
GAAAAElQTS5NaWNyb3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEG
|
|
AAcAAQAAAAAAAAEGgAMADgAAANMHCgASAAkALAAAAAYAMQEBA5AGALwLAAAu
|
|
AAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADAC4AAAAAAAIB
|
|
MQABAAAAGAAAAAAAAABtAGF1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78e4bf60b1--
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="016504.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable
|
|
instances
|
|
</A></li>
|
|
<LI> Next message: <A HREF="016494.html">[Mono-list] Possible mcs bug: CS0019 detected for comparable instances
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#16493">[ date ]</a>
|
|
<a href="thread.html#16493">[ thread ]</a>
|
|
<a href="subject.html#16493">[ subject ]</a>
|
|
<a href="author.html#16493">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|