class X shared var flag1 as bool var flag2 as bool var flagFoo1 as bool var flagFoo2 as bool test .flag1 = true test anotherTestSection .flag2 = true def foo test foo1 .flagFoo1 = true test foo2 .flagFoo2 = true body pass def main assert .flag1 assert .flag2 assert .flagFoo1 assert .flagFoo2