[netcore] Ongoing work. (#13391)
[mono-project.git] / mono / tests / classinit.cs
blob781f7e097155b5a37d4690744e6e8a925989c190
1 using System;
3 class Foo {
5 static public int i = 0;
8 class Bar {
10 static public int j;
12 static Bar () {
13 j = Foo.i;
17 class Bug {
19 static public int Main () {
20 Foo.i = 5;
21 if (Bar.j != 5)
22 return 1;
24 return 0;