GoLang:fix overload functions with polymorphic issue
This commit is contained in:
parent
afa9affcd9
commit
60da096a07
663 changed files with 180498 additions and 1 deletions
25
Examples/test-suite/overload_polymorphic.i
Normal file
25
Examples/test-suite/overload_polymorphic.i
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
%module overload_polymorphic
|
||||
|
||||
#ifndef SWIG_NO_OVERLOAD
|
||||
|
||||
%inline %{
|
||||
|
||||
class Base {
|
||||
public:
|
||||
Base(){}
|
||||
virtual ~Base(){}
|
||||
};
|
||||
|
||||
class Derived : public Base {
|
||||
public:
|
||||
Derived(){}
|
||||
virtual ~Derived(){}
|
||||
};
|
||||
|
||||
|
||||
|
||||
int test(Base* base){ return 0;}
|
||||
int test(int hello){ return 1; }
|
||||
|
||||
%}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue