2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs1667.cs
blob1adf5682037f3484bdf4589ae71059f4d47de929
1 // CS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return' declarations only
2 // GMCS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations only
3 // Line: 15
5 class Test {
6 public static bool Error {
7 [System.CLSCompliant (true)] get {
8 return false;
13 class MainClass {
14 public static void Main () {
15 System.Console.WriteLine (Test.Error);