1 %module extend_template 2 %module xxx // should be ignored 3 namespace oss { // this doesn't 4 %extend Foo<0> { test1(int x)5 int test1(int x) { return x; } 6 } 7 } 8 9 %extend oss::Foo<0> { // this doesn't test2(int x)10 int test2(int x) { return x; } 11 }; 12 13 14 %inline %{ 15 namespace oss 16 { 17 template <int> 18 struct Foo { 19 }; 20 } 21 %} 22 23 namespace oss 24 { 25 %template(Foo_0) Foo<0>; 26 } 27