summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0206-4.cs
blob: 2b6563c51c981de3f624c3602d4c53186aec6172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0206: A property, indexer or dynamic member access may not be passed as `ref' or `out' parameter
// Line: 16

using System;

public class Test
{
	public static void WriteOutData (out dynamic d)
	{
		d = 5.0;
	}

	public static void Main (string[] args)
	{
		dynamic d = null;
		WriteOutData (out d.Foo);
	}
}