the documentation mentions $parentname and $parentsymname as special variables to use (e.g. in %extend). This should be $parentclassname and $parentclasssymname.
apologies that this bug report has no title. I hadn't spotted the relevant box and there seems no way to change the title once it has been posted.
Thanks for pointing out. Fixed for swig-3.0.3.