diff --git a/SWIG/Source/Modules/lang.cxx b/SWIG/Source/Modules/lang.cxx index 52449f0bb..87df48277 100644 --- a/SWIG/Source/Modules/lang.cxx +++ b/SWIG/Source/Modules/lang.cxx @@ -1644,6 +1644,7 @@ int Language::classDeclaration(Node *n) { } else { ClassType = NewStringf("%s %s", kind, classname); } + Setattr(n,"classtypeobj", Copy(ClassType)); Setattr(n,"classtype", SwigType_namestr(ClassType)); InClass = 1;