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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=82038 --- shadow/82038 2007-07-08 02:51:21.000000000 -0400 +++ shadow/82038.tmp.28383 2007-07-08 02:51:21.000000000 -0400 @@ -0,0 +1,41 @@ +Bug#: 82038 +Product: Mono: Compilers +Version: 1.2 +OS: All +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: CS0420 reported when executing method on volatile integral type + +When a method is invoked on an instance of a volatile integral type, then +(g)mcs reports CS0420. + +To reproduce, compile the following code snippet: + +class Program +{ + volatile static int x = 0; + + static void Main () + { + x.GetHashCode (); + } +} + +Expected result: + +Successful compilation. + +Actual result: + +test.cs(7,17): error CS0420: `Program.x': A volatile fields cannot be +passed using a ref or out parameter _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
