[mcs] Add expression bodied syntax for accessors. Fixes #54991
[mono.git] / mcs / errors / cs0023-17.cs
1 // CS0023: The `.' operator cannot be applied to operand of type `method group'
2 // Line: 20
3
4 using System;
5
6 enum Enum
7 {
8         Test
9 }
10
11 class A : Attribute
12 {
13         public A (object e)
14         {
15         }
16 }
17
18 class C
19 {
20         [A (Enum.Test)]
21         int Enum ()
22         {
23                 return 0;
24         }
25 }