From 81caa4e83643b21f673f9abc3dc9b152ee3bb74a Mon Sep 17 00:00:00 2001 From: NotWearingPants Date: Thu, 7 Oct 2021 00:11:05 +0300 Subject: [PATCH] fix bad unreachable assert --- porth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porth.py b/porth.py index 4e1ba3bf..3f87994b 100755 --- a/porth.py +++ b/porth.py @@ -858,7 +858,7 @@ def type_check_program(program: Program): stack = block_snapshot else: - assert "unreachable" + assert False, "unreachable" elif op.typ == OpType.ELSE: stack_snapshot, block_type = block_stack.pop() assert block_type == OpType.IF