Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2015-07-09 00:09:08 +0300
committerZoltan Varga <vargaz@gmail.com>2015-07-09 00:09:32 +0300
commit7e47248076210f604d6ccbf0be024c2b2839a074 (patch)
tree72a70ddf6cf3c025af903e586eacc9dd21c74820 /mcs/class/Mono.Debugger.Soft
parent09747fb182d51c5c8963d68325204964c6b845f2 (diff)
[sdb] Allow boxed vtypes as this when invoking vtype methods. Fixes #30023.
Diffstat (limited to 'mcs/class/Mono.Debugger.Soft')
-rw-r--r--mcs/class/Mono.Debugger.Soft/Test/dtest.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs
index f00aad4ece0..641fefd2afe 100644
--- a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs
+++ b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs
@@ -2286,6 +2286,12 @@ public class DebuggerTests
v = s.InvokeMethod (e.Thread, m, null);
AssertValue (42, v);
+ // Pass boxed struct as this
+ var boxed_this = t.NewInstance () as ObjectMirror;
+ m = t.GetMethod ("invoke_return_int");
+ v = boxed_this.InvokeMethod (e.Thread, m, null);
+ AssertValue (0, v);
+
// Pass struct as this, receive intptr
m = t.GetMethod ("invoke_return_intptr");
v = s.InvokeMethod (e.Thread, m, null);