[Mono-bugs] [Bug 38530][Wis] New - delegate out parameter issues

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 22 Feb 2003 11:51:30 -0500 (EST)


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 dick@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=38530

--- shadow/38530	Sat Feb 22 11:51:30 2003
+++ shadow/38530.tmp.9036	Sat Feb 22 11:51:30 2003
@@ -0,0 +1,36 @@
+Bug#: 38530
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dick@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: delegate out parameter issues
+
+namespace blah {
+        public class Foo {
+        }
+
+        public delegate int Wibble(Foo a, out Foo b);
+}
+
+gives the following output when compiling:
+
+:; mcs  name-combined.cs  
+name-combined.cs(6) error CS0246: Cannot find type `Foo'
+Compilation failed: 1 error(s), 0 warnings
+
+
+The problem is the out parameter: comment out the "out" and it compiles. 
+Additionally, without the namespace declaration the code compiles with the
+"out" parameter.  Also, if Foo is replaced by a builtin type like int, it
+also compiles with the "out" parameter.