[Mono-bugs] [Bug 35489][Min] New - When a namespace is included twice, ambiguous reference errors are thrown.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
11 Dec 2002 23:36:59 -0000


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 bryan@alphora.com.

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

--- shadow/35489	Wed Dec 11 18:36:59 2002
+++ shadow/35489.tmp.12786	Wed Dec 11 18:36:59 2002
@@ -0,0 +1,149 @@
+Bug#: 35489
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bryan@alphora.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: When a namespace is included twice, ambiguous reference errors are thrown.
+
+Here is the output from a build:
+
+C:\src\Dataphor\Base>mcs test-list-abstract.cs
+
+You can run mcs with 'monomcs' on .NET, instead of mono, too.
+
+test-list-abstract.cs(1559) warning CS0105: The using directive 
+for 'System' appeared previously in this namespace
+test-list-abstract.cs(1562) warning CS0105: The using directive 
+for 'System.Collections' appeared previously in this nam
+espace
+test-list-abstract.cs(303) error CS0104: `IList' is an ambiguous reference 
+(System.Collections.IList or System.Collectio
+ns.IList)
+test-list-abstract.cs(303) error CS0246: The type or namespace `IList' 
+could not be found
+test-list-abstract.cs(1654) error CS0104: `IDisposable' is an ambiguous 
+reference (System.IDisposable or System.IDisposa
+ble)
+test-list-abstract.cs(1654) error CS0246: The type or namespace 
+`IDisposable' could not be found
+test-list-abstract.cs(1661) error CS0104: `IDisposable' is an ambiguous 
+reference (System.IDisposable or System.IDisposa
+ble)
+test-list-abstract.cs(1661) error CS0246: The type or namespace 
+`IDisposable' could not be found
+test-list-abstract.cs(1669) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.INotifyList'
+test-list-abstract.cs(1669) error CS0246: The type or namespace 
+`INotifyList' could not be found
+test-list-abstract.cs(19) error CS0104: `ArrayList' is an ambiguous 
+reference (System.Collections.ArrayList or System.Co
+llections.ArrayList)
+test-list-abstract.cs(18) error CS0246: Cannot find type `ArrayList'
+test-list-abstract.cs(167) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.List'
+test-list-abstract.cs(167) error CS0246: Cannot find type `List'
+test-list-abstract.cs(319) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.List'
+test-list-abstract.cs(319) error CS0246: Cannot find type `List'
+test-list-abstract.cs(370) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.DisposableList'
+test-list-abstract.cs(370) error CS0246: Cannot find type `DisposableList'
+test-list-abstract.cs(411) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.List'
+test-list-abstract.cs(411) error CS0246: Cannot find type `List'
+test-list-abstract.cs(470) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.DisposableList'
+test-list-abstract.cs(470) error CS0246: Cannot find type `DisposableList'
+test-list-abstract.cs(530) error CS0104: `IList' is an ambiguous reference 
+(System.Collections.IList or System.Collectio
+ns.IList)
+test-list-abstract.cs(530) error CS0246: Cannot find type `IList'
+test-list-abstract.cs(704) error CS0104: `Hashtable' is an ambiguous 
+reference (System.Collections.Hashtable or System.C
+ollections.Hashtable)
+test-list-abstract.cs(704) error CS0246: Cannot find type `Hashtable'
+test-list-abstract.cs(1303) error CS0104: `IList' is an ambiguous 
+reference (System.Collections.IList or System.Collecti
+ons.IList)
+test-list-abstract.cs(1302) error CS0246: Cannot find type `IList'
+test-list-abstract.cs(1578) error CS0104: `Object' is an ambiguous 
+reference (System.Object or System.Object)
+test-list-abstract.cs(1578) error CS0246: Cannot find type `Object'
+test-list-abstract.cs(1678) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.DisposableNotifyList'
+test-list-abstract.cs(1678) error CS0246: Cannot find type 
+`DisposableNotifyList'
+test-list-abstract.cs(1723) error CS0104: `IDisposable' is an ambiguous 
+reference (System.IDisposable or System.IDisposa
+ble)
+test-list-abstract.cs(1723) error CS0246: Cannot find type `IDisposable'
+test-list-abstract.cs(1742) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.IParent'
+test-list-abstract.cs(1742) error CS0246: Cannot find type `IParent'
+test-list-abstract.cs(1841) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.ListCover'
+test-list-abstract.cs(1841) error CS0246: Cannot find type `ListCover'
+test-list-abstract.cs(1883) error CS0104: `IList' is an ambiguous 
+reference (System.Collections.IList or System.Collecti
+ons.IList)
+test-list-abstract.cs(1883) error CS0246: Cannot find type `IList'
+test-list-abstract.cs(1572) error CS0104: `EventHandler' is an ambiguous 
+reference (System.EventHandler or System.EventH
+andler)
+test-list-abstract.cs(1572) error CS0246: Cannot find type `EventHandler'
+test-list-abstract.cs(1636) error CS0104: `Type' is an ambiguous reference 
+(System.Type or System.Type)
+test-list-abstract.cs(1641) error CS0104: `Type' is an ambiguous reference 
+(System.Type or System.Type)
+test-list-abstract.cs(1636) error CS0104: `Type' is an ambiguous reference 
+(System.Type or System.Type)
+test-list-abstract.cs(1641) error CS0104: `Type' is an ambiguous reference 
+(System.Type or System.Type)
+test-list-abstract.cs(1208) error CS0104: `Hashtable' is an ambiguous 
+reference (System.Collections.Hashtable or System.
+Collections.Hashtable)
+test-list-abstract.cs(1733) error CS0104: `EventHandler' is an ambiguous 
+reference (System.EventHandler or System.EventH
+andler)
+test-list-abstract.cs(1742) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.ChildList'
+test-list-abstract.cs(1742) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.IParent'
+test-list-abstract.cs(1742) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.IParent'
+test-list-abstract.cs(1742) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.IParent'
+test-list-abstract.cs(1742) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.IChildList'
+test-list-abstract.cs(1742) error CS0146: Class definition is circular: 
+`Alphora.Dataphor.IParent'
+Compilation failed: 52 error(s), 2 warnings
+
+C:\src\Dataphor\Base>csc test-list-abstract.cs
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+
+test-list-abstract.cs(1559,1): error CS1529: A using clause must precede 
+all other namespace elements
+test-list-abstract.cs(1560,1): error CS1529: A using clause must precede 
+all other namespace elements
+test-list-abstract.cs(1561,1): error CS1529: A using clause must precede 
+all other namespace elements
+test-list-abstract.cs(1562,1): error CS1529: A using clause must precede 
+all other namespace elements
+test-list-abstract.cs(1563,1): error CS1529: A using clause must precede 
+all other namespace elements
+
+C:\src\Dataphor\Base>