summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0657-23.cs
blob: 193a6ae51d86002da58ab460bed77bfc781b698c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0657: `field' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `param'. All attributes in this section will be ignored
// Line: 9
// Compiler options: -warnaserror -langversion:experimental

using System;

public class FieldAttribute : System.Attribute
{
}

class X ([field:FieldAttribute] int foo)
{
	int v = foo;
}