class Foo { method() { return "ok"; print "bad"; } } print Foo().method(); // out: ok