diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-10-15 19:01:58 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:07:21 -0300 |
commit | c1ef5a79d14b598e7b0027be2922b23a78e57c02 (patch) | |
tree | facae7f75e2a8d086fde9dc708ab0d2df5997cc5 /tests | |
parent | 894d7c725bc103919d38a6a491852e8cfc255d7d (diff) |
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.h | 3 | ||||
-rw-r--r-- | tests/samplebinding/typesystem_sample.xml | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/libsample/samplenamespace.h b/tests/libsample/samplenamespace.h index d00bbb1f9..da01ac1fa 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 319cc6589..9d14681a2 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"> |