◐ Shell
reader mode source ↗
Skip to content
Merged
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ details about the cause of the failure

- Fix incorrect dereference of wrapper object in `tp_repr`, which may result in a program crash
- Fix incorrect dereference in params array handling
- Fix `object[]` parameters taking precedence when should not in overload resolution
- Fixed a bug where all .NET class instances were considered Iterable
- Fix incorrect choice of method to invoke when using keyword arguments.
Expand Down
20 changes: 19 additions & 1 deletion src/testing/methodtest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,25 @@ public static string OptionalAndDefaultParams2([Optional]int a, [Optional]int b,
return string.Format("{0}{1}{2}{3}", a, b, c, d);
}


}


Expand Down
29 changes: 29 additions & 0 deletions src/tests/test_method.py
Original file line number Diff line number Diff line change
@@ -1153,6 +1153,35 @@ def test_optional_and_default_params():
res = MethodTest.OptionalAndDefaultParams2(b=2, c=3)
assert res == "0232"

def test_keyword_arg_method_resolution():
from Python.Test import MethodArityTest

Expand Down
Toggle all file notes Toggle all file annotations