fix panic in current_prolog_flag/2 when arguments are the same variable

This commit is contained in:
no382001
2026-03-31 09:48:23 +02:00
parent 79a9b950cb
commit 6a10c6d6a5
3 changed files with 12 additions and 4 deletions

2
tests-pl/issue2914.pl Normal file
View File

@@ -0,0 +1,2 @@
:- initialization(main).
main :- ( current_prolog_flag(X, X) -> write(true) ; write(false) ).