Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0236.cs
1 // CS0236: A field initializer cannot reference the nonstatic field, method, or property `X.Foo'
2 // Line: 12
3
4 class X
5 {
6         int Foo {
7                 get {
8                         return 9;
9                 }
10         }
11
12         long Bar = Foo;
13
14         static void Main () {
15         }
16 }
17