From 1ea4adbcd492661258cb827e1e8bac5575e2f7d8 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/SWIG@6388 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/python/director_basic_runme.py | 4 ++++ Source/Modules/lang.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Examples/test-suite/python/director_basic_runme.py b/Examples/test-suite/python/director_basic_runme.py index 7a8d3f59c..55dff3835 100644 --- a/Examples/test-suite/python/director_basic_runme.py +++ b/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/Source/Modules/lang.cxx b/Source/Modules/lang.cxx index c98a94454..ffcbc89ba 100644 --- a/Source/Modules/lang.cxx +++ b/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);