Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs1667-3.cs
1 // CS1667: Attribute `System.Diagnostics.ConditionalAttribute' is not valid on property or event accessors. It is valid on `method' declarations only
2 // GMCS1667: Attribute `System.Diagnostics.ConditionalAttribute' is not valid on property or event accessors. It is valid on `class, method' declarations only
3 // Line: 11
4
5 using System;
6 using System.Diagnostics;
7
8 class Class1 
9 {
10         public int G {
11             [Conditional("DEBUG")]
12             get {
13                     return 1;
14             }
15         }
16 }