[Mono-bugs] [Bug 66918][Nor] New - attribute constant resolving

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 27 Sep 2004 15:29:37 -0400 (EDT)


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 marek.safar@seznam.cz.

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

--- shadow/66918	2004-09-27 15:29:37.000000000 -0400
+++ shadow/66918.tmp.25474	2004-09-27 15:29:37.000000000 -0400
@@ -0,0 +1,69 @@
+Bug#: 66918
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: marek.safar@seznam.cz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: attribute constant resolving
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. 
+using System.Runtime.CompilerServices;
+using System;
+
+namespace Q {
+        public class Test {
+            
+                public static void Main () {
+                }
+                
+                [IndexerName (W.T.BLAH_LIB)]
+                public int this [int a]
+                {
+                    set {
+                    }
+                }
+        }
+}
+
+namespace W
+{
+    public class T {
+        public const string BLAH_LIB = "aaa";
+    }
+}
+2. 
+3. 
+
+Actual Results:
+
+bug.cs(10) error CS0117: `W.T' does not contain a definition for `BLAH_LIB'
+bug.cs(10) error CS0633: The argument to the 'IndexerName' attribute must
+be a v
+alid identifier
+Compilation failed: 2 error(s), 0 warnings
+
+Expected Results:
+
+Compilation succeeded
+
+
+How often does this happen? 
+
+
+Additional Information: