[mcs] Allows shadowing of probing pattern variables
[mono.git] / mcs / errors / cs0657-23.cs
1 // 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
2 // Line: 9
3 // Compiler options: -warnaserror -langversion:experimental
4
5 using System;
6
7 public class FieldAttribute : System.Attribute
8 {
9 }
10
11 class X ([field:FieldAttribute] int foo)
12 {
13         int v = foo;
14 }