diff --git a/SWIG/Examples/test-suite/python/director_basic_runme.py b/SWIG/Examples/test-suite/python/director_basic_runme.py index 7a8d3f59c..55dff3835 100644 --- a/SWIG/Examples/test-suite/python/director_basic_runme.py +++ b/SWIG/Examples/test-suite/python/director_basic_runme.py @@ -21,4 +21,8 @@ if b.ping() != "Foo::ping()": if b.pong() != "Foo::pong();Foo::ping()": raise RuntimeError, b.pong() +a = director_basic.A1(1) + +if a.rg(2) != 2: + raise RuntimeError diff --git a/SWIG/Source/Modules/lang.cxx b/SWIG/Source/Modules/lang.cxx index c98a94454..ffcbc89ba 100644 --- a/SWIG/Source/Modules/lang.cxx +++ b/SWIG/Source/Modules/lang.cxx @@ -1570,7 +1570,7 @@ int Language::unrollVirtualMethods(Node *n, if (SwigType_isfunction(decl) && (is_public(ni) || need_nopublic)) { - String *name = Getattr(ni, "sym:name"); + String *name = Getattr(ni, "name"); String *local_decl = SwigType_typedef_resolve_all(decl); Node *method_id = is_destructor ? NewStringf("~destructor") : NewStringf("%s|%s", name, local_decl);