~sebsite/harec-plus-plus

b5e3f962ea8e9d88d61197d4453d03fc7437812b — Lorenz (xha) 8 months ago 4bc4f5a
12-loops: fix scope test

Signed-off-by: Lorenz (xha) <me@xha.li>
1 files changed, 1 insertions(+), 1 deletions(-)

M tests/12-loops.ha
M tests/12-loops.ha => tests/12-loops.ha +1 -1
@@ 9,7 9,7 @@ fn scope() void = {
			break;
		};
	};
	compile(status::CHECK, "fn test() void = { for (true) { let x = 10; }; x; };")!;
	compile(status::CHECK, "fn test() void = { for (true) { let x = 10; break; }; x; };")!;
	// To make sure that the afterthought is part of the loop's scope
	for (let i = 0; true; (if (true) { break; })) true;
};