[Mono-bugs] [Bug 53557][Wis] New - mcs erroneously returns a CS0146: Class definition is circular error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 29 Jan 2004 13:08:40 -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 chris@turchin.net.

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

--- shadow/53557	2004-01-29 13:08:40.000000000 -0500
+++ shadow/53557.tmp.9073	2004-01-29 13:08:40.000000000 -0500
@@ -0,0 +1,57 @@
+Bug#: 53557
+Product: Mono/Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: chris@turchin.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs erroneously returns a CS0146: Class definition is circular error
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+mcs erroneously returns a CS0146: Class definition is circular error when
+compiling the Lucene.NET sources: 
+
+I have been trying to get
+Lucene.Net(http://sourceforge.net/projects/lucenedotnet) to compile in mono
+withmcs and am stumbling over the following compiler
+error:Store/Lock.cs(41) error CS0146: Class definition is
+circular:`Lucene.Net.Store.Lock.With'Index/IndexReader.cs(124) error
+CS0117: `Lucene.Net.Store.Lock' does notcontain a definition for
+`With'...The relavant code looks like this (method implementations elided
+for clarity - see attachment)
+
+Steps to reproduce the problem:
+1.  download Lucene.NET source 
+2. create makefile with slntomake.exe 
+3. make
+
+Actual Results:
+
+Store/Lock.cs(41) error CS0146: Class definition is
+circular:`Lucene.Net.Store.Lock.With'Index/IndexReader.cs(124) error
+CS0117: `Lucene.Net.Store.Lock' does notcontain a definition for
+`With'...The relavant code looks like this (method implementations elided
+for clarity - see attachment)
+Expected Results:
+
+compilation succeeded.
+
+How often does this happen? 
+every time.
+
+Additional Information:
+
+compiled dll from MS Framework runs on mono. I just can compile the code on
+mono with mcs.