Skip to content

empty default case in @jump switch does not fallthrough #2147

Closed
@Book-reader

Description

@Book-reader
import std::io;

fn int main(String[] args)
{
	switch (1) @jump
	{
		default:
		case 3:
		 	io::printfn("any number");
	}
	return 0;
}

nothing is printed when the program is run. removing @jump or adding explicit nextcase fixes it

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingFixed needs testingNeeds verification / testing that it now works

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions