Skip to content

Commit

Permalink
Fix for Problem with if-then-else
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Jan 22, 2025
1 parent 7b4c2bb commit 95bc73e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/issues/test651.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
here1{true}here2{\+true}here3{\+true}
13 changes: 13 additions & 0 deletions tests/issues/test651.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:- initialization(main).

main :-
member(X,[true,\+true]),
( X ->
write(here1),
X
; \+X ->
write(here2),
(\+X; write(here3))
),
write({X}), fail.
main :- nl.

0 comments on commit 95bc73e

Please sign in to comment.