update readme (#21797)
[mono-project.git] / mcs / errors / cs0657-19.cs
blobe9bb8e631b245810cce9d7ab245d57b445ea20d3
1 // CS0657: `field' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `event, method'. All attributes in this section will be ignored
2 // Line: 8
3 // Compiler options: -warnaserror
5 using System;
7 interface X {
8 [field:NonSerialized]
9 event EventHandler XEvent;