void () { I1 s1 = <error descr="Non-static method cannot be referenced from a static context">MyTest2 ::m1</error>; call1(<error descr="Non-static method cannot be referenced from a static context">MyTest2::m1</error>); I1 s2 = MyTest2 :: m2; call1(MyTest2::m2); I1 s3 = MyTest2::m3; call1(MyTest2::m3); I1 s4 = <error descr="Non-static method cannot be referenced from a static context">MyTest2::m4</error>; call1(<error descr="Non-static method cannot be referenced from a static context">MyTest2::m4</error>); }