X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs8200.cs;h=e7565e4d4e715d35b55ca5a02d6b090ad65d59d2;hb=edbc5c2334e10836479d1cc528c68d4ad5b47440;hp=d9819f677a1a61e66454cb7b0109123a1be2e1ac;hpb=7ff8f29ff29fa3f08ef305ac43ef079097323286;p=mono.git diff --git a/mcs/errors/cs8200.cs b/mcs/errors/cs8200.cs index d9819f677a1..e7565e4d4e7 100644 --- a/mcs/errors/cs8200.cs +++ b/mcs/errors/cs8200.cs @@ -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