it will require to modify lang.cxx, so, it will wait the next release. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5561 626c5289-ae23-0410-ae9c-e8d60b6d4f22
34 lines
447 B
OpenEdge ABL
34 lines
447 B
OpenEdge ABL
%module(directors="1") director_redefined
|
|
|
|
/*
|
|
This example generates two 'get_val' virtual members in the
|
|
director, and since they are equivalent, the compilation fails.
|
|
*/
|
|
|
|
%feature("director") B;
|
|
|
|
%inline
|
|
{
|
|
typedef int Int;
|
|
|
|
struct A
|
|
{
|
|
virtual ~A()
|
|
{
|
|
}
|
|
virtual int get_val(Int a)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
};
|
|
|
|
struct B : A
|
|
{
|
|
virtual int get_val(int a)
|
|
{
|
|
return 1;
|
|
}
|
|
};
|
|
}
|
|
|