[Mono-dev] CS0685 error compiling ref parameters

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Dec 8 18:49:33 EST 2005

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
	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).



More information about the Mono-devel-list mailing list