MethodA(ulong address, int size)
+ {
+ return new byte[10];
+ }
+
+ public int MethodA(string dummy, ulong address, int size)
+ {
+ return 0;
+ }
+ }
}
diff --git a/tests/test_conversion.py b/tests/test_conversion.py
index eec2bcde6..8fa972a3e 100644
--- a/tests/test_conversion.py
+++ b/tests/test_conversion.py
@@ -4,7 +4,7 @@
import pytest
import System
-from Python.Test import ConversionTest, UnicodeString
+from Python.Test import ConversionTest, UnicodeString, MethodResolutionInt
from Python.Runtime import PyObjectConversions
from Python.Runtime.Codecs import RawProxyEncoder
@@ -681,3 +681,15 @@ def CanEncode(self, clr_type):
l = ob.ListField
l.Add(42)
assert ob.ListField.Count == 1
+
+def test_int_param_resolution_required():
+ """Test resolution of `int` parameters when resolution is needed"""
+
+ mri = MethodResolutionInt()
+ data = list(mri.MethodA(0x1000, 10))
+ assert len(data) == 10
+ assert data[0] == 0
+
+ data = list(mri.MethodA(0x100000000, 10))
+ assert len(data) == 10
+ assert data[0] == 0
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy