diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2007-11-30 22:34:50 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2007-11-30 22:34:50 +0000 |
commit | 575efcdd53c6375c497f43dce2bb5f74fe9e4e40 (patch) | |
tree | 0294a01ce7c50579f7228a2dcd8bf6547bbd27a0 /Examples/test-suite/using_inherit.i | |
parent | 84dc1cc4f6e89f59067552ab218491c26f4dab6d (diff) | |
download | swig-575efcdd53c6375c497f43dce2bb5f74fe9e4e40.tar.gz |
Fix using statements for overloaded methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10176 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/using_inherit.i')
-rw-r--r-- | Examples/test-suite/using_inherit.i | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Examples/test-suite/using_inherit.i b/Examples/test-suite/using_inherit.i index 4c3a694b0..b4fe9664a 100644 --- a/Examples/test-suite/using_inherit.i +++ b/Examples/test-suite/using_inherit.i @@ -17,5 +17,38 @@ public: using Foo::test; }; +class Bar2 : public Foo { +public: + int test(int x) { return x*2; } + double test(double x) { return x*2; }; + using Foo::test; +}; + +class Bar3 : public Foo { +public: + int test(int x) { return x*2; } + double test(double x) { return x*2; }; + using Foo::test; +}; + +class Bar4 : public Foo { +public: + int test(int x) { return x*2; } + using Foo::test; + double test(double x) { return x*2; }; +}; + +class Fred1 : public Foo { +public: + using Foo::test; + double test(double x) { return x*2; }; +}; + +class Fred2 : public Foo { +public: + double test(double x) { return x*2; }; + using Foo::test; +}; + %} |