swig/Examples/test-suite/namespace_nested.i
Dave Beazley 12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00

59 lines
730 B
OpenEdge ABL

%module namespace_nested
%warnfilter(801) hello::hi::hi0; /* Ruby, wrong class name */
%warnfilter(801) oss::hi1<hello::Hi0 >; /* Ruby, wrong class name */
%inline %{
namespace hello
{
namespace hi
{
struct hi0
{
};
}
template <class _T1>
struct Hi : _T1
{
};
}
%}
namespace hello
{
%template(Hi_hi0) Hi<hi::hi0>;
}
%inline %{
namespace hello
{
//
// This works
//
// typedef Hi<hello::hi::hi0> Hi0;
//
// This doesn't work
//
typedef Hi<hi::hi0> Hi0;
};
namespace oss
{
template <class _T>
struct hi1 : _T
{
};
}
%}
namespace oss
{
%template(hi1_hi0) hi1<hello::Hi0 >;
}