mirror of https://github.com/swig/swig.git
22 lines
386 B
OpenEdge ABL
22 lines
386 B
OpenEdge ABL
%module using_duplicates
|
|
|
|
%inline %{
|
|
namespace aa {
|
|
struct UsedFromNS {
|
|
int value;
|
|
};
|
|
}
|
|
|
|
template<typename T> class Container {
|
|
public:
|
|
T item;
|
|
T get() const { return item; }
|
|
void set(T t) { item = t; }
|
|
};
|
|
%}
|
|
|
|
using aa::UsedFromNS;
|
|
using aa::UsedFromNS; // Duplicate using declaration (the regression being tested)
|
|
|
|
%template(ContainerUsedFromNS) Container< UsedFromNS >;
|