[Mono-bugs] [Bug 74339][Nor] Changed - for-next with NEGATIVE step attribute and end-value less than start value

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 5 Apr 2005 11:59:55 -0400 (EDT)


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 rafaelteixeirabr@hotmail.com.

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

--- shadow/74339	2005-04-02 17:18:52.000000000 -0500
+++ shadow/74339.tmp.1578	2005-04-05 11:59:55.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 74339
 Product: Mono: Compilers
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Basic
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: jwezel@compumaster.de               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: for-next with step attribute
+Summary: for-next with NEGATIVE step attribute and end-value less than start value
 
 Description of Problem:
 STEP attribute for FOR loop doesn't work in mono 1.1.5/mbas 0.96.1.0 from 
 2005-04-02
 
 Steps to reproduce the problem:
@@ -46,6 +46,32 @@
 Missing output of second loop which should step backwards
 
 How often does this happen? 
 always
 
 Additional Information:
+
+------- Additional Comments From rafaelteixeirabr@hotmail.com  2005-04-05 11:59 -------
+Step works, but only for positive values...
+
+Here a better test
+
+Imports Microsoft.VisualBasic
+Imports System
+Imports System.IO
+
+Public Class Test
+Public Shared Sub Main()
+        For MyCounter As Integer = 1 to 3
+                Console.WriteLine (MyCounter)
+        Next
+        For MyCounter As Integer = 1 to 6 step 2
+                Console.WriteLine (MyCounter)
+        Next
+        For MyCounter As Integer = 3 to -3 step -3
+                Console.WriteLine (MyCounter)
+        Next
+        Console.Readline()
+End Sub
+
+End Class
+