Skip to content

Break statement #26

Description

@achxkloel

Break statement does not work inside conditional statements in while loop.

Example:

require "ifj21"

function main()
	local foo : integer = 1
	
	while foo do
		if foo then
			break
		end
	end
	
	write("hello\n")
end

main()

Output:

Error at line: 311
Label does not exist!

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions