Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs8200.cs
index d9819f677a1a61e66454cb7b0109123a1be2e1ac..e7565e4d4e715d35b55ca5a02d6b090ad65d59d2 100644 (file)
@@ -1,12 +1,20 @@
-// cs8200.cs: Do not allow type-parameter-constraint-clauses when
-// there is no type-parameter list
-//
-using System.Collections;
-class Dingus where T : IEnumerable {
-}
+// CS8200: Out variable and pattern variable declarations are not allowed within constructor initializers, field initializers, or property initializers
+// Line: 11
 
-class D {
-       static void Main ()
+public class C
+{
+       public C (bool value)
+       {               
+       }
+
+       public C ()
+               : this (Foo (out int arg))
+       {       
+       }
+
+       static bool Foo (out int arg)
        {
+               arg = 2;
+               return false;
        }
-}
+}
\ No newline at end of file