[Mono-bugs] [Bug 29512][Min] Changed - MCS doesn't check whether operator may be applied
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
28 Aug 2002 01:02:20 -0000
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 martin@gnome.org.
http://bugzilla.ximian.com/show_bug.cgi?id=29512
--- shadow/29512 Tue Aug 27 19:23:36 2002
+++ shadow/29512.tmp.12458 Tue Aug 27 21:02:20 2002
@@ -3,21 +3,21 @@
Version: unspecified
OS: other
OS Details:
Status: NEW
Resolution:
Severity: Unknown
-Priority: Critical
+Priority: Minor
Component: Misc
AssignedTo: martin@gnome.org
ReportedBy: ric@users.sourceforge.net
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: Incorrect checking of variable inizialization
+Summary: MCS doesn't check whether operator may be applied
When compiling the following code:
namespace T1 {
using System;
@@ -51,6 +51,12 @@
t.cs(25) error CS0165: Use of unassigned local variable `mi'
Compilation failed: 1 error(s), 0 warnings
which is wrong. Also, if I comment out line 25, mcs produces incorrect
code. It does produce correct code if i comment both lines 25 and 20.
+
+------- Additional Comments From martin@gnome.org 2002-08-27 21:02 -------
+This has nothing to do with variable initialization.
+You code is incorrect: you cannot use the || operator between operands of type BindingFlags.
+The bug is that MCS doesn't catch this and report the CS0019 as it should do.
+