diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-01-11 17:34:28 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:12:53 -0300 |
commit | 0e7ecded1f8d944ee138d79b46f10e5f6c6618c7 (patch) | |
tree | fbe345554c65c9f7f6b10a01bccda099bf1b34da /tests/samplebinding/typesystem_sample.xml | |
parent | 640537a691a2cd0830e12810714ec0cc5164242a (diff) |
Added test to assert the precedence of enum arguments over int implicit conversions.
This test is inspired by bug #511 [1], and it checks the precedence of
an enum argument over a class that can be implicitly built from an
integer.
[1] http://bugs.openbossa.org/show_bug.cgi?id=511
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r-- | tests/samplebinding/typesystem_sample.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml index 5a518c34a..2667c16d5 100644 --- a/tests/samplebinding/typesystem_sample.xml +++ b/tests/samplebinding/typesystem_sample.xml @@ -1238,6 +1238,11 @@ </add-function> </value-type> + <value-type name="Color" /> + <value-type name="Pen"> + <enum-type identified-by-value="EnumCtor"/> + </value-type> + <value-type name="CtorConvRule"> <modify-function signature="CtorConvRule(long)"> <modify-argument index="1"> |