Fix Python default args when using kwargs
Recent default arg handling fixes didn't fix the case when kwargs is turned on
This commit is contained in:
parent
bedff70793
commit
afba5b755a
3 changed files with 37 additions and 24 deletions
|
|
@ -79,9 +79,9 @@
|
|||
static const size_type hello = 3;
|
||||
};
|
||||
|
||||
int rfoo( const size_type& x = Hello::hello, const Hello& y = Hello() )
|
||||
int rfoo( int n = 0, const size_type& x = Hello::hello, const Hello& y = Hello() )
|
||||
{
|
||||
return x;
|
||||
return n - x;
|
||||
}
|
||||
%}
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue