Page MenuHomeFeedback Tracker

Switch: fall-trough case's can't have a body
Closed, ResolvedPublic

Description

The compiler error for missing a break in switch case with a body is misspelled in the workbench.

Switch: fall-trough case's can't have a body

Should be

Switch: fallthrough cases can't have a body

Details

Severity
Trivial
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Compile the following

		int a = 1;
		switch (a) {
			case 2: {
				int b = 0;
			};
			default: {
				int b = 0;
			};
		}
Additional Information

Event Timeline

antihax created this task.Oct 9 2020, 11:32 PM
Geez changed the task status from New to Assigned.Oct 12 2020, 11:24 AM
Geez closed this task as Resolved.Jun 28 2021, 11:22 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello antihax.
This works as designed. fall through is available only to case without a body.
Regards,
Geez

It's designed to be spelled incorrectly?

Geez added a comment.Jun 29 2021, 9:38 AM

Hello antihax.
It appears we have misunderstood, and in that case we will fix the spelling error on our end.
Regards,
Geez