summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-15 19:01:58 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-10-15 19:12:24 -0300
commit9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1 (patch)
tree6a99d67a22e3754e164861faf82e555856e754ff /tests
parentb548f03130cdd2aa7bdcb4bf00f5da8240fc78ee (diff)
downloadshiboken-9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1.tar.gz
shiboken-9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1.tar.xz
shiboken-9078b47fcc5fec2d80a242e8a8f494b5b4c4efd1.zip
Fixed namespace lookup during the class generation.
fixes bug #414. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/libsample/samplenamespace.h3
-rw-r--r--tests/samplebinding/typesystem_sample.xml4
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/libsample/samplenamespace.h b/tests/libsample/samplenamespace.h
index d00bbb1f..da01ac1f 100644
--- a/tests/libsample/samplenamespace.h
+++ b/tests/libsample/samplenamespace.h
@@ -99,6 +99,9 @@ public:
class DerivedFromNamespace : public SomeClass::SomeInnerClass::OkThisIsRecursiveEnough
{
public:
+ //only cause namespace confusion
+ enum SampleNamespace {
+ };
virtual OkThisIsRecursiveEnough* someVirtualMethod(OkThisIsRecursiveEnough* arg) { return arg; }
inline OkThisIsRecursiveEnough* methodReturningTypeFromParentScope() { return 0; }
};
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index 319cc658..9d14681a 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -87,7 +87,9 @@
<enum-type name="OutValue"/>
<enum-type identified-by-value="AnonymousClassEnum_Value1"/>
- <object-type name="DerivedFromNamespace" />
+ <object-type name="DerivedFromNamespace">
+ <enum-type name="SampleNamespace"/>
+ </object-type>
<value-type name="SomeClass">
<value-type name="SomeInnerClass">
<object-type name="OkThisIsRecursiveEnough">