mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
18 lines
210 B
C#
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 () {
|
|
}
|
|
}
|
|
|