Bug 323553 (MONO80867) - Error when compiling partial class
Summary: Error when compiling partial class
Status: RESOLVED MOVED
Alias: MONO80867
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.2
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 23:25 UTC by Lluis Sanchez
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:28:11 UTC


---- Reported by lluis@ximian.com 2007-02-15 16:25:28 MST ----

I get a compilation order when trying to compile the following partial
class split in two files

============== test1.cs ============

using System.Collections;

namespace MonoDevelop.VersionControl.Dialogs
{
	public partial class Test
	{
		public ArrayList selected = new ArrayList ();
	}
}

============== test2.cs ============

namespace MonoDevelop.VersionControl.Dialogs
{
    public partial class Test
    {
    }
}

==========================================

If I run "gmcs test1.cs test2.cs /t:library" it compiles fine.

If I run "gmcs test2.cs test1.cs /t:library" I get this error:

test1.cs(8,35): error CS0246: The type or namespace name `ArrayList' could
not be found. Are you missing a using directive or an assembly reference?



---- Additional Comments From martin@ximian.com 2007-02-15 17:03:21 MST ----

I tried with both r72772 and HEAD and couldn't reproduce it with
either one.



---- Additional Comments From marek.safar@seznam.cz 2007-02-15 17:14:06 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO80749 ***


Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"