summaryrefslogtreecommitdiff
path: root/mcs/errors/cs7081.cs
blob: 20597c1465cb532639b669f4efecfa2841351bd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS7081: The CallerMemberNameAttribute applied to parameter `o' will have no effect. It is overridden by the CallerLineNumberAttribute
// Line: 9
// Compiler options: -warnaserror

using System.Runtime.CompilerServices;

class D
{
	void Foo ([CallerMemberName, CallerLineNumber] object o = null)
	{
	}
}