fix namespace issue reported by Nero, in short, types must be resolved first in the parent scope, then in the base class list
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4271ac67b1
commit
86247fd2ca
2 changed files with 43 additions and 16 deletions
|
|
@ -241,3 +241,29 @@ public:
|
|||
|
||||
}
|
||||
|
||||
%rename(FLACFile) TagLib::FLAC::File;
|
||||
|
||||
%inline {
|
||||
namespace TagLib
|
||||
{
|
||||
class File {
|
||||
public:
|
||||
File() {}
|
||||
};
|
||||
class AudioProperties { };
|
||||
|
||||
namespace FLAC
|
||||
{
|
||||
class File;
|
||||
class Properties : public AudioProperties {
|
||||
public:
|
||||
Properties(File *) {}
|
||||
};
|
||||
|
||||
class File {
|
||||
public:
|
||||
File() {}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue