[Mono-bugs] [Bug 73834][Nor] New - Wrong CS0154 error
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 18 Mar 2005 05:37:52 -0500 (EST)
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=73834
--- shadow/73834 2005-03-18 05:37:52.000000000 -0500
+++ shadow/73834.tmp.11289 2005-03-18 05:37:52.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 73834
+Product: Mono: Compilers
+Version: 1.1
+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: Wrong CS0154 error
+
+Steps to reproduce the problem:
+1.
+
+ public enum LiteralType
+ {
+ Void,
+ }
+
+ class C
+ {
+ public LiteralType LiteralType
+ {
+ set
+ {
+ }
+ }
+
+ private LiteralType[] widenSbyte = new LiteralType[]
+ {
+ LiteralType.Void
+ };
+
+ static void Main () {}
+ }
+
+Actual Results:
+X.cs(17) error CS0154: The property `LiteralType' can not be used in this
+context because it lacks a get accessor
+
+Expected Results:
+
+No error