Skip to content

Commit

Permalink
FIXED: expand_term/2 to succeed twice when expanding a toplevel list.
Browse files Browse the repository at this point in the history
Results in duplicate clauses when compiling `[f(1), f(2)].`.
Reported by Uwe Neumerkel.
  • Loading branch information
JanWielemaker committed Oct 18, 2024
1 parent 733db7c commit e265369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boot/expand.pl
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@
var(Var),
!.
list_pos(list_position(F,T,Elems0,none), Elems0,
list_position(F,T,Elems,none), Elems).
list_position(F,T,Elems,none), Elems) :-
!.
list_pos(Pos, [Pos], Elems, Elems).


Expand Down

0 comments on commit e265369

Please sign in to comment.