Skip to content

No user code before the first case in a switch statement #36

@Garados007

Description

@Garados007

Igor Pro allows code before the first case in a switch statement but this code is never executed.

switch(i)
	print "this would never be executed", i
	case 1:
		print "one"
		break
endswitch

Similarly to #35, I would get rid of such code as it only confuses the reader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions