[mcs] Add expression bodied syntax for accessors. Fixes #54991
[mono.git] / mcs / errors / cs0562.cs
index f8ba8032d328c446134697e68493e4e95c832a59..dc57cfb3108e8f7ff1d3bceb86c670ebc1f54279 100644 (file)
@@ -1,8 +1,9 @@
-// cs0562.cs: The parameter of a unary operator must be the containing type\r
-// Line: 5\r
-\r
-class SampleClass {\r
-        public static SampleClass operator - (int value) {\r
-                return new SampleClass();\r
-        }\r
-}\r
+// CS0562: The parameter type of a unary operator must be the containing type
+// Line: 7
+
+class SampleClass {
+       public static SampleClass operator - (int value)
+       {
+               return new SampleClass();
+       }
+}