Page MenuHomeFeedback Tracker

Operator issues with while
Closed, ResolvedPublic

Description

The following will not compile.

void testWhile() {
	int x = 20;
	while (x-- > 4) {
		Print(x);
	}
}

The following will compile.

void testWhile() {
	int x = 20;
	while (--x > 3) {
		Print(x);
	}
}

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
void testWhile() {
	int x = 20;
	while (x-- > 4) {
		Print(x);
	}
}

Event Timeline

antihax created this task.Oct 23 2020, 12:04 AM
antihax edited Steps To Reproduce. (Show Details)
Geez closed this task as Resolved.Jun 29 2021, 10:56 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello antihax.
The issue has been fixed internally and the fix will appear in one of the upcoming updates.
Regards,
Geez