-// Compiler options: -langversion:default\r
-\r
-using System;\r
-\r
-namespace Test2\r
-{\r
- public interface Base\r
- { }\r
-\r
- public partial class Foo : Base\r
- {\r
- public static int f = 10;\r
- }\r
-\r
- public partial class Foo : Base\r
- {\r
- public static int f2 = 9; \r
- }\r
-}\r
-\r
-namespace Test3\r
-{\r
- public interface Base\r
- { }\r
-\r
- public partial struct Foo : Base\r
- {\r
- public static int f = 10;\r
- }\r
-\r
- public partial struct Foo : Base\r
- {\r
- public static int f2 = 9;\r
- }\r
-}\r
-\r
-class X\r
-{\r
- static int Main ()\r
- {\r
- if (Test2.Foo.f != 10)\r
- return 1;\r
- \r
- if (Test2.Foo.f2 != 9)\r
- return 1;\r
- \r
- if (Test3.Foo.f != 10)\r
- return 1;\r
-\r
- if (Test3.Foo.f2 != 9)\r
- return 1;\r
- \r
- Console.WriteLine ("OK");\r
- return 0;\r
- }\r
-}\r
+// Compiler options: -langversion:default
+
+using System;
+
+namespace Test2
+{
+ public interface Base
+ { }
+
+ public partial class Foo : Base
+ {
+ public static int f = 10;
+ }
+
+ public partial class Foo : Base
+ {
+ public static int f2 = 9;
+ }
+}
+
+namespace Test3
+{
+ public interface Base
+ { }
+
+ public partial struct Foo : Base
+ {
+ public static int f = 10;
+ }
+
+ public partial struct Foo : Base
+ {
+ public static int f2 = 9;
+ }
+}
+
+class X
+{
+ static int Main ()
+ {
+ if (Test2.Foo.f != 10)
+ return 1;
+
+ if (Test2.Foo.f2 != 9)
+ return 1;
+
+ if (Test3.Foo.f != 10)
+ return 1;
+
+ if (Test3.Foo.f2 != 9)
+ return 1;
+
+ Console.WriteLine ("OK");
+ return 0;
+ }
+}