Skip to content

Commit

Permalink
Fix for Problem with soft-if-then-else
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Jan 23, 2025
1 parent b611e6c commit 490f39c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/issues/test660.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
here1{true}here1{false}here1{false}
10 changes: 10 additions & 0 deletions tests/issues/test660.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
:- initialization(main).

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

0 comments on commit 490f39c

Please sign in to comment.