Files
mono/mcs/errors/cs0236.cs
T
Marek Safar 1fb4eab34b new tests + error syntax fixes
svn path=/trunk/mcs/; revision=48785
2005-08-24 15:23:34 +00:00

18 lines
210 B
C#

// cs0236.cs: A field initializer cannot reference the nonstatic field, method, or property `X.Foo'
// Line: 12
class X
{
int Foo {
get {
return 9;
}
}
long Bar = Foo;
static void Main () {
}
}