[Mono-devel-list] Namespace lookup bug with attributes in current CVS

Steven Brown swbrown at ucsd.edu
Tue Jun 8 20:06:29 EDT 2004


When I reference a member in file that has an [XmlEment] attribute from 
another file with only 'using System.Xml', mcs tries to use the 
definition in the referencing file (from System.Xml) instead of the 
definition in the containing file (from System.Xml.Serialization).  Some 
sort of parser error in mcs since after beta2?

The attached example (compile as mcs AttributeTest.cs AttributeClass.cs) 
  demonstrates this bug.  If you comment out the "using System.Xml" in 
the referencing file, it compiles.  If you add "using 
System.Xml.Serialization" to the referencing file, it also compiles.  It 
should make no difference, as it's the containing file's "using 
System.Xml.Serialization" that should matter.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AttributeClass.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040608/345365a6/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: AttributeTest.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040608/345365a6/attachment-0001.pl 


More information about the Mono-devel-list mailing list