new fix for director protected members + overloading
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b920c8438c
commit
00006295b0
3 changed files with 20 additions and 3 deletions
|
|
@ -123,6 +123,7 @@ class FooBar : private Foo
|
|||
virtual ~AA() {};
|
||||
protected:
|
||||
virtual void draw() {};
|
||||
virtual void plot() {};
|
||||
};
|
||||
|
||||
class BB : public AA {
|
||||
|
|
@ -132,6 +133,9 @@ class FooBar : private Foo
|
|||
protected:
|
||||
void draw() {};
|
||||
void draw(int arg1) {};
|
||||
|
||||
void plot(int arg1) {};
|
||||
void plot() {};
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,3 +60,9 @@ try:
|
|||
except:
|
||||
error = 0
|
||||
if (error): raise RuntimeError
|
||||
|
||||
|
||||
try:
|
||||
f = director_abstract.A.f
|
||||
except:
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue