[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #11432] Compiler confuses types and fields, but
From: |
James Michael DuPont |
Subject: |
[Pnet-developers] [bugs #11432] Compiler confuses types and fields, but only if there is an attribute |
Date: |
Wed, 29 Dec 2004 11:46:06 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0 (Debian package 1.0-2) |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #11432] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11432>
Project: DotGNU Portable.NET
Submitted by: James Michael DuPont
On: Wed 12/29/2004 at 11:46
Category: None
Severity: 5 - Average
Item Group: None
Resolution: None
Privacy: Public
Assigned to: None
Status: Open
Summary: Compiler confuses types and fields, but only if there is an attribute
Original Submission: // the compiler thinks this a BOOM::BOO is a type an a
field. gets confused
namespace FOO
{
public class Funky : Attribute
{
public Funky (object value) { }
}
public enum BOO { BAZ }
public class BAM
{
[Funky (BOO.BAZ)]
public BOO BOO2 = BOO.BAZ;
[Funky (BOO.BAZ)]
public BOO BOO3 = BOO.BAZ;
}
public class BOOF
{
public BOO BOO2 = BOO.BAZ;
public BOO BOO = BOO.BAZ;// same name -- no attribute
}
public class BOOM
{
[Funky (BOO.BAZ)]
public BOO BOO2 = BOO.BAZ;// different name // `BOO' is not
declared as a type in the current scope
[Funky (BOO.BAZ)]
public BOO BOO = BOO.BAZ;// same name -- PROBLEM `BOO' is not
declared as a type in the current scope
}
}
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11432>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Pnet-developers] [bugs #11432] Compiler confuses types and fields, but only if there is an attribute,
James Michael DuPont <=