mirror of https://github.com/swig/swig
Testcase fix for R
Workaround bug in R when a method with default arguments end in 'get'
This commit is contained in:
parent
15ebf3df03
commit
63e2f636de
|
@ -6,8 +6,8 @@ def check(flag):
|
|||
|
||||
rs = ResultSet()
|
||||
|
||||
check(rs.go_get(0, SearchPoint()) == -1)
|
||||
check(rs.go_get(0, SearchPoint(), 100) == 100)
|
||||
check(rs.go_get_method(0, SearchPoint()) == -1)
|
||||
check(rs.go_get_method(0, SearchPoint(), 100) == 100)
|
||||
|
||||
check(rs.go_get_template(0, SearchPoint()) == -2)
|
||||
check(rs.go_get_template(0, SearchPoint(), 100) == 100)
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
|
||||
// Specialized template extend
|
||||
%extend gaia2::BaseResultSet<gaia2::SearchPoint, gaia2::DataSet> {
|
||||
int go_get(int n, gaia2::SearchPoint, int offset = -1) {
|
||||
int go_get_method(int n, gaia2::SearchPoint, int offset = -1) {
|
||||
return offset;
|
||||
}
|
||||
const char *over(gaia2::SearchPoint, int x = 0) {
|
||||
|
|
Loading…
Reference in New Issue