diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-10-26 00:22:50 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-10-26 00:22:50 +0000 |
commit | bb900b3e101a94eb46160ff40c1f10c35562002f (patch) | |
tree | 1a19ac6de3a17870cff3e747c70246d05c252f82 /Examples/test-suite/using_namespace.i | |
parent | e2f5c7674ced15590bd6c8563fa5ce7a77dcff70 (diff) | |
download | swig-bb900b3e101a94eb46160ff40c1f10c35562002f.tar.gz |
more using+namespaces cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6507 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/using_namespace.i')
-rw-r--r-- | Examples/test-suite/using_namespace.i | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Examples/test-suite/using_namespace.i b/Examples/test-suite/using_namespace.i index 8b1e9b7e0..da0c4d692 100644 --- a/Examples/test-suite/using_namespace.i +++ b/Examples/test-suite/using_namespace.i @@ -19,6 +19,11 @@ { return 1; } + + int value2() const + { + return 2; + } }; } @@ -43,12 +48,8 @@ namespace hello { struct hi1 : private hello::Hi< hello::Hello, hi0 > { - // This works - // using hello::Hi< hello::Hello, hi::hi0 >::value1; - - // This doesn't - using hello::Hi< hello::Hello, hi0 >::value1; - + using hello::Hi< hello::Hello, hi::hi0 >::value1; + using hello::Hi< hello::Hello, hi0 >::value2; }; } |