[Mono-dev] CS0685 error compiling ref parameters

Marek Safar marek.safar at seznam.cz
Mon Dec 12 17:26:33 EST 2005


Hello Michael,

Please file a bug report for this.

Marek
> I am finding that mcs from SVN head is aborting compilation with the error
>   "error CS0685: Conditional method `C.Test(ref int)' cannot have an
> out parameter"
> on methods that actually have a 'ref' parameter, not an out parameter.
>
> The following code demonstrates this, and builds fine on .NET 1.1
>
> class C
> {
> 	[System.Diagnostics.Conditional("DEBUG")]
> 	void Test (ref int i) {}
> 	
> 	public static void Main () {}
> }
>
> This may be a problem with my local tree, as it breaks Beagle and I'm
> surprised no-one else has noticed. On the other hand, I haven't
> tracked it down, so it may be that most people won't have needed to
> recompile the bit that it breaks on (the HTML agility pack).
>
>
> Regards,
>
> Michael
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>   




More information about the Mono-devel-list mailing list