[mcs] Consider method candidates with misplaced named arguments not applicable. Fixes...
[mono.git] / mcs / errors / cs0233.cs
index 117e6ec5116595a5c7138d8c0025d35c66863cf5..c98d7c68fb8cc9325f515ca30882d26645c40361 100644 (file)
@@ -1,10 +1,13 @@
-// cs0233.cs: sizeof can only be used in an unsafe context (consider using System.Runtime.InteropServices.Marshal.SizeOf)
-// Line: 7
-// Compiler options: -unsafe
+// CS0233: `MainClass.S' does not have a predefined size, therefore sizeof can only be used in an unsafe context (consider using System.Runtime.InteropServices.Marshal.SizeOf)
+// Line: 10
 
 public class MainClass {
-        static void Main () {
-                const int size = sizeof(int);
+       struct S
+       {
+       }
+       
+        static int Main () {
+                return sizeof(S);
         }
 }