-using System;\r
-using System.Collections.Generic;\r
-\r
-class A\r
-{\r
- protected virtual int BaseM {\r
- get {\r
- return 2;\r
- }\r
- set\r
- {\r
- throw new ApplicationException ("it should not be called");\r
- }\r
- }\r
-}\r
-\r
-class B : A\r
-{\r
- protected override int BaseM {\r
- set\r
- {\r
- }\r
- }\r
-}\r
-\r
-struct S\r
-{\r
- public IEnumerable<int> GetIt ()\r
- {\r
- yield return base.GetHashCode ();\r
- }\r
-}\r
-\r
-class X : B\r
-{\r
- protected override int BaseM {\r
- set\r
- {\r
- throw new ApplicationException ("it should not be called");\r
- }\r
- }\r
-\r
- IEnumerable<int> GetIt ()\r
- {\r
- yield return base.BaseM++;\r
- }\r
-\r
- static int Main ()\r
- {\r
- foreach (var v in new X ().GetIt ())\r
- Console.WriteLine (v);\r
-\r
- foreach (var v in new S ().GetIt ())\r
- Console.WriteLine (v);\r
-\r
- return 0;\r
- }\r
+using System;
+using System.Collections.Generic;
+
+class A
+{
+ protected virtual int BaseM {
+ get {
+ return 2;
+ }
+ set
+ {
+ throw new ApplicationException ("it should not be called");
+ }
+ }
+}
+
+class B : A
+{
+ protected override int BaseM {
+ set
+ {
+ }
+ }
+}
+
+struct S
+{
+ public IEnumerable<int> GetIt ()
+ {
+ yield return base.GetHashCode ();
+ }
+}
+
+class X : B
+{
+ protected override int BaseM {
+ set
+ {
+ throw new ApplicationException ("it should not be called");
+ }
+ }
+
+ IEnumerable<int> GetIt ()
+ {
+ yield return base.BaseM++;
+ }
+
+ static int Main ()
+ {
+ foreach (var v in new X ().GetIt ())
+ Console.WriteLine (v);
+
+ foreach (var v in new S ().GetIt ())
+ Console.WriteLine (v);
+
+ return 0;
+ }