diff --git a/Examples/test-suite/template_nested_typemaps.i b/Examples/test-suite/template_nested_typemaps.i index b40e7e291..54f5bc503 100644 --- a/Examples/test-suite/template_nested_typemaps.i +++ b/Examples/test-suite/template_nested_typemaps.i @@ -4,22 +4,18 @@ // Testing that the typemaps invoked within a class via %template are picked up by appropriate methods -%inline %{ template struct Typemap { -#ifdef SWIG %typemap(in) T { $1 = -99; } -#endif }; template <> struct Typemap { // Note explicit specialization -#ifdef SWIG %typemap(in) short { $1 = -77; } -#endif }; +%inline %{ int globalInt1(int s) { return s; } short globalShort1(short s) { return s; }