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