Hi,

The attached patch adds a testcase that demonstrates a bug in
assignments to properties. I will commit it to SVN in a few hours.

Cheers,

Jelmer

-- 
Jelmer Vernooij <[EMAIL PROTECTED]> - http://jelmer.vernstok.nl/
 18:39:57 up 2 days,  1:39,  1 user,  load average: 0.16, 0.11, 0.09
Index: Test/tests/statements/AssignmentStatementsJ.vb
===================================================================
--- Test/tests/statements/AssignmentStatementsJ.vb      (revision 0)
+++ Test/tests/statements/AssignmentStatementsJ.vb      (revision 0)
@@ -0,0 +1,26 @@
+Imports System
+Imports Microsoft.VisualBasic
+
+Module AssignmentStatementsC
+       Class Obj
+               Dim _prop as String
+               Public Property prop() As String
+                       Set
+                               _prop = Value
+                       End Set
+                       Get
+                               Return _prop
+                       End Get
+               End Property
+       End Class
+
+       Sub Main()
+               Dim foo As New Obj
+               foo.prop = "Hello"
+               foo.prop += "World"
+
+               If foo.prop <> "HelloWorld" Then
+                       Throw New Exception("#ASC5 - Assignment Statement 
failed")
+               End If
+       End Sub
+End Module
Index: ChangeLog
===================================================================
--- ChangeLog   (revision 57083)
+++ ChangeLog   (working copy)
@@ -1,3 +1,7 @@
+2006-02-21 Jelmer Vernooij <[EMAIL PROTECTED]>
+       * Test/tests/statements/AssignmentStatementsJ.vb: Add test that 
+       demonstrates bug in incremental property assignment.
+
 2006-01-23 Jelmer Vernooij <[EMAIL PROTECTED]>
        * Test/tests/typemembers/EventP.vb: Add tests that check for 
        more complex constructions in AddHandler / RemoveHandler.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Mono-vb mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-vb

Reply via email to