Author: marek
Date: 2008-01-24 05:32:23 -0500 (Thu, 24 Jan 2008)
New Revision: 93784
Added:
trunk/mcs/tests/gtest-364.cs
Log:
2008-01-24 Marek Safar <[EMAIL PROTECTED]>
A test for bug #355163
Added: trunk/mcs/tests/gtest-364.cs
===================================================================
--- trunk/mcs/tests/gtest-364.cs 2008-01-24 10:31:50 UTC (rev 93783)
+++ trunk/mcs/tests/gtest-364.cs 2008-01-24 10:32:23 UTC (rev 93784)
@@ -0,0 +1,38 @@
+using System;
+
+namespace BugReport
+{
+ class Program
+ {
+ static int Main()
+ {
+ A a = new A();
+ a.Counter++;
+ if (a.Counter != null)
+ return 1;
+ ++a.Counter;
+ if (a.Counter != null)
+ return 2;
+
+ a.Counter = 0;
+ a.Counter++;
+ if (a.Counter != 1)
+ return 3;
+ ++a.Counter;
+ if (a.Counter != 2)
+ return 4;
+
+ Console.WriteLine ("OK");
+ return 0;
+ }
+ }
+
+ class A {
+ private int? _counter;
+ public int? Counter {
+ get { return _counter; }
+ set { _counter = value; }
+ }
+ }
+}
+
Property changes on: trunk/mcs/tests/gtest-364.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches