Merge pull request #4615 from alexanderkyte/string_error_handling
[mono.git] / mcs / errors / cs0118-16.cs
1 // CS0118: `X.Foo' is a `property' but a `method group' was expected
2 // Line: 12
3
4 class X
5 {
6         static int Foo {
7                 get { return 1; }
8         }
9
10         static void Main ()
11         {
12                 Foo (1);
13         }
14 }