Using declarations in inheritance hierarchy improvements.
- Improved documentation for using declarations. - Issue new warning WARN_LANG_USING_NAME_DIFFERENT when there is a conflict in the target language name to be used when introducing a method via a using declaration. Previously the method was silently ignored. Issue #1840. Issue #655.
This commit is contained in:
parent
e36e898c0a
commit
79a1bbee8b
8 changed files with 176 additions and 30 deletions
|
|
@ -12,3 +12,13 @@ bb = BB()
|
|||
swig_assert_equal(bb.greater(int(1)), 0)
|
||||
swig_assert_equal(bb.greater(float(1)), 1)
|
||||
swig_assert_equal(bb.great(True), 2)
|
||||
|
||||
cc = CC()
|
||||
swig_assert_equal(cc.greater(int(10)), 0)
|
||||
swig_assert_equal(cc.greater(float(10)), 1)
|
||||
swig_assert_equal(cc.greater(True), 20)
|
||||
|
||||
dd = DD()
|
||||
swig_assert_equal(dd.greater(int(10)), 0)
|
||||
swig_assert_equal(dd.greater(float(10)), 1)
|
||||
swig_assert_equal(dd.greaterstill(True), 30)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue