[Mono-bugs] [Bug 59864][Nor] New - CS0019
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 9 Jun 2004 08:27:13 -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=59864
--- shadow/59864 2004-06-09 08:27:13.000000000 -0400
+++ shadow/59864.tmp.23937 2004-06-09 08:27:13.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 59864
+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: CS0019
+
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+public class Foo {
+
+ public static void Main ()
+ {
+ MethodImplAttributes methodImplAttributes = 0;
+
+ if ((methodImplAttributes & MethodImplOptions.Synchronized)
+== 0) {
+ }
+ }
+}
+
+Actual Results:
+
+Compilation succeeded
+
+Expected Results:
+
+This code should report CS0019
+
+cs0019-8.cs(13,22): error CS0019: Operator '&' cannot be applied to
+operands of type 'System.Reflection.MethodImplAttributes' and
+ 'System.Runtime.CompilerServices.MethodImplOptions'