From 81de58871974ce4c54190702afa0c8abcd23cd50 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 11 Oct 2004 22:53:24 +0000 Subject: [PATCH] add Scott Fix for directors+rename, and testExamples/test-suite/director_basic.i git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6388 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/python/director_basic_runme.py | 4 ++++ SWIG/Source/Modules/lang.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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);