[Mono-bugs] [Bug 78279][Blo] New - cannot compile delegates from
different assemblies
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu May 4 04:28:30 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sagie_sh at yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78279
--- shadow/78279 2006-05-04 04:28:30.000000000 -0400
+++ shadow/78279.tmp.7988 2006-05-04 04:28:30.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 78279
+Product: Mono: Compilers
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity: 016 Two days
+Priority: Blocker
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: sagie_sh at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: cannot compile delegates from different assemblies
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+I have two different assemblies. In the first I created a function with
+a delegate as parameter. In the second I call to that function. The
+compiler won't receive it.
+
+Steps to reproduce the problem:
+
+In First.Dll:
+ namespace FirstNS
+ {
+ class FirstClass
+ {
+ public delegate void MyDlgt();
+
+ public void Foo(MyDlgt){}
+ }
+ }
+
+In Second.dll:
+
+ using FirstNS;
+ namespace SecondNS
+ {
+ class SecondClass
+ {
+ public void Operation()
+ {
+ FirstClass fc = new FirstClass();
+ FirstClass.MyDlgt dlgt = new FirstClass.MyDlgt(DoNothing);
+ fc.Foo(dlgt);
+ }
+
+ public void DoNothing(){}
+ }
+ }
+Actual Results:
+Second.dll won't compile - error CS1503: cannot convert from
+FirstClass.MyDlgt to FirstClass.MyDlgt
+
+Expected Results:
+Compile normally
+
+How often does this happen?
+every time
+
+Additional Information:
More information about the mono-bugs
mailing list