// One of Luigi's evil tests %module template_extend1 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Baz; // Ruby, wrong class name %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Baz; // Ruby, wrong class name %{ namespace Quux { template class Baz {}; } %} namespace Quux { template class Baz {}; %template (lBaz) Baz; %extend Baz { char *foo(void) { return (char *) "lBaz::foo"; } } %template (dBaz) Baz; %extend Baz { char *foo(void) { return (char *) "dBaz::foo"; } } }