[Mono-bugs] [Bug 75902][Nor] New - Struct field member assing

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 25 03:04:38 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by krylovbv at mail.ru.

http://bugzilla.ximian.com/show_bug.cgi?id=75902

--- shadow/75902	2005-08-25 03:04:38.000000000 -0400
+++ shadow/75902.tmp.28630	2005-08-25 03:04:38.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 75902
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: JIT
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: krylovbv at mail.ru               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Struct field member assing
+
+Declare such class:
+
+public class TestStructAssign : MarshalByRefObject {
+  public TestStruct S;
+}
+
+public struct TestStruct {
+  public int F;
+}
+
+
+In code try to assing value:
+
+TestStructAssign c = new TestStructAssign();
+c.S.F = -1;
+
+Actual:
+
+c.S.F == 0
+
+Expected:
+
+c.S.F == -1
+
+In Microsoft.Net work just fine.


More information about the mono-bugs mailing list