Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07c096e

Browse files
committed
fixed MarshallerOverride test
1 parent 8716f37 commit 07c096e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/embed_tests/TestCustomArgMarshal.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ class CustomArgMarshaling {
4646
public virtual void CallWithInt(int value) => this.LastArgument = value;
4747
}
4848

49-
// this should override original custom marshaling behavior
49+
// this should override original custom marshaling behavior for any new methods
5050
[PyArgConverter(typeof(CustomArgConverter2))]
51-
class DerivedMarshaling: CustomArgMarshaling { }
51+
class DerivedMarshaling : CustomArgMarshaling {
52+
public override void CallWithInt(int value) {
53+
base.CallWithInt(value);
54+
}
55+
}
5256

5357
class CustomArgConverter : DefaultPyArgumentConverter {
5458
public override bool TryConvertArgument(IntPtr pyarg, Type parameterType, bool needsResolution,

0 commit comments

Comments
 (0)