[Mono-bugs] [Bug 79688][Wis] New - compiler requires 'internal' scope with anonymous method

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Oct 17 18:18:12 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 ats at cs.rit.edu.

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

--- shadow/79688	2006-10-17 18:18:12.000000000 -0400
+++ shadow/79688.tmp.24827	2006-10-17 18:18:12.000000000 -0400
@@ -0,0 +1,62 @@
+Bug#: 79688
+Product: Mono: Compilers
+Version: 1.1
+OS: other
+OS Details: Mac OS X 10.4.8 on Intel
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: ats at cs.rit.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: compiler requires 'internal' scope with anonymous method
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+
+error when compiling included files.
+
+Steps to reproduce the problem:
+1. 
+
+gmcs /d:MONO  /m:Axel.ADT.Tree.SetTest Set.cs IContainer.cs Test.cs
+
+2. 
+3. 
+
+Actual Results:
+
+if MONO is defined (see #if near line 38 in file Set.cs) there is no error.
+if MONO is undefined I get:
+
+Set.cs(122,32): error CS0050: Inconsistent accessibility: return type 
+`Axel.ADT.Tree.Set<Element>.Node' is less accessible than method 
+`Axel.ADT.Tree.Set<Element>.<#AnonymousMethod>0()'
+Set.cs(38,21):: `Axel.ADT.Tree.Set<Element>.Node', name of symbol related to previous error
+Set.cs(125,33): error CS0051: Inconsistent accessibility: parameter type 
+`Axel.ADT.Tree.Set<Element>.Node' is less accessible than method 
+`Axel.ADT.Tree.Set<Element>.<#AnonymousMethod>1(Axel.ADT.Tree.Set<Element>.Node)'
+Set.cs(38,21):: `Axel.ADT.Tree.Set<Element>.Node', name of symbol related to previous error
+Set.cs(133,29): error CS0051: Inconsistent accessibility: parameter type 
+`Axel.ADT.Tree.Set<Element>.Node' is less accessible than method 
+`Axel.ADT.Tree.Set<Element>.<#AnonymousMethod>2(Axel.ADT.Tree.Set<Element>.Node)'
+Set.cs(38,21):: `Axel.ADT.Tree.Set<Element>.Node', name of symbol related to previous error
+Compilation failed: 3 error(s), 0 warnings
+
+Expected Results:
+
+no error -- even if MONO is undefined.
+this is what happens on .NET.
+
+How often does this happen? 
+
+always
+
+Additional Information:
+
+I'll include 3 source files


More information about the mono-bugs mailing list