contract C{ function f() public{ } } contract Test{ event E(); function bug(C c) public{ c.f(); emit E(); } function ok(C c) public{ emit E(); c.f(); c.f(); } }