Interface feature fix for typedef types

This commit is contained in:
William S Fulton 2016-03-07 21:39:53 +00:00
commit 5117c77d4a
2 changed files with 25 additions and 8 deletions

View file

@ -49,3 +49,18 @@ struct U : R {};
struct V : S {};
struct W : T {};
%}
#if defined(SWIGJAVA) || defined(SWIGCSHARP)
%interface_impl(BaseOverloaded);
#endif
%inline %{
struct BaseOverloaded {
typedef P PTypedef;
virtual ~BaseOverloaded() {}
virtual void identical_overload(int i, const PTypedef &pp = PTypedef()) {}
};
struct DerivedOverloaded : public BaseOverloaded {
virtual void identical_overload(int i, const PTypedef &p = PTypedef()) {}
};
%}