[Go] Fix member variables in base classes to handle CWRAP_NATURAL_VAR
correctly. Add a test case for the problem. Fixes #339.
This commit is contained in:
parent
c6b3088e58
commit
11d8403c3c
4 changed files with 47 additions and 3 deletions
17
Examples/test-suite/inherit_member.i
Normal file
17
Examples/test-suite/inherit_member.i
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Based on https://github.com/swig/swig/issues/339 .
|
||||
|
||||
%module inherit_member
|
||||
|
||||
%include <std_string.i>
|
||||
|
||||
%inline %{
|
||||
|
||||
struct parent {
|
||||
std::string pvar;
|
||||
};
|
||||
|
||||
struct child : public parent {
|
||||
std::string cvar;
|
||||
};
|
||||
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue