Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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