%module xxx %extend foo { int bar() { } };