[Mono-devel-list] Pnet Incompatibilty Fwd: [bugs #11454] BOGUS: incompatible types in event addition

James Michael DuPont mdupont777 at yahoo.com
Thu Dec 30 07:01:32 EST 2004


I have posted a bug here against pnet because of code that obviously
compiles in mono (i hope, it is not mine) that does not compile in
pnet.

I have written a test case for this. Would appreciate some direction.

<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11454>


--- James Michael DuPont <noreply at savannah.gnu.org> wrote:
/**************************************************************************/
> 
> Summary:  BOGUS: incompatible types in event addition
> 
> Original Submission:  //I dont know if this is a bug, please advise.
> //testcase1.cs:13: incompatible types in event addition: 'void' to
> 'TEST.foo'
> public class  TEST {
> 	public delegate void foo ();
> 	public virtual event  foo boo;
> }
> class test
> {
> 	void foo2()
> 	{}
> 	void foo()
> 	{
> 	    TEST foo;
>    	    foo.boo += foo2; // BUG incompatible types in event addition:
> 'void' to 'TEST.foo'
> 	}
> }

> -------------------------------------------------------
> Date: Thu 12/30/2004 at 11:51       By: James Michael DuPont
> <mdupont>
> Well, it turns out that this might be something that is allowed in
> mono (rightly or wrongly) that does not work in pnet.  It is
> therefore good to have this in the pnet bug system so that other
> people who are porting from mono to pnet will know about this issue. 
> 
> There is code in frege
>
http://www.netalleynetworks.com/community/jgeldart/research/frege/Frege-0.1.0.tar.gz
> that needs to be changed to compile on pnet :
> 
> -                    Driver.ServiceOwnerChanged +=
> OnServiceOwnerChanged;
> +                    Driver.ServiceOwnerChanged += new
> BusDriver.ServiceEventHandler(OnServiceOwnerChanged);
> 
> I will see if this is a bug in mono. Or if this is a new feature of
> .net2 that has not been implemented yet in pnet.
> 
> mike
> 
> -------------------------------------------------------
> Date: Thu 12/30/2004 at 11:27       By: James Michael DuPont
> <mdupont>
> //This is not a bug.
> //was my fault, here is the good code.
> public class  TEST {
> 	public TEST()
> 	{}
> 	public delegate void foo ();
> 	public virtual event  foo boo;
> }
> class test
> {
> 	void foo2()
> 	{}
> 	void foo3()
> 	{
> 	    TEST foo;
> 	    foo.boo += new TEST.foo(foo2);
> 	}
> }

> <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11454>


=====
James Michael DuPont
http://introspector.sourceforge.net/


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 




More information about the Mono-devel-list mailing list