diff --git a/Examples/test-suite/python/template_static_runme.py b/Examples/test-suite/python/template_static_runme.py new file mode 100644 index 000000000..e7f17af38 --- /dev/null +++ b/Examples/test-suite/python/template_static_runme.py @@ -0,0 +1,3 @@ +from template_static import * + +print Foo.bar_double(1) diff --git a/Examples/test-suite/template_static.i b/Examples/test-suite/template_static.i index 087cb3db2..e4696143d 100644 --- a/Examples/test-suite/template_static.i +++ b/Examples/test-suite/template_static.i @@ -14,3 +14,20 @@ template int foo::test = 0; %template(foo_i) foo; %template(foo_d) foo; + +%inline %{ +namespace toto { + class Foo { + public: + template + static double bar(int i) { + return 1.0; + }; + + private: + int i; + }; +} +%} + +%template(bar_double) toto::Foo::bar;