Skip to content

Commit 1c983d1

Browse files
committed
fixed singletons and mismatched vars
1 parent 35930e4 commit 1c983d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prolog/metta_lang/metta_types.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -843,10 +843,10 @@
843843
get_dict_type(Val, _, Type) :-
844844
% Retrieve the type from the dictionary 'type' field.
845845
get_dict(Val, type, Type).
846-
get_dict_type(Val, _, TypeO) :-
846+
get_dict_type(Val, _, Type) :-
847847
% Retrieve the type from the dictionary 'class' field.
848848
get_dict(Val, class, Type).
849-
get_dict_type(Val, _, TypeO) :-
849+
get_dict_type(Val, _, Type) :-
850850
% Retrieve the type from the dictionary 'types' field if it is a list.
851851
get_dict(Val, types, TypeL),
852852
is_list(TypeL),
@@ -939,7 +939,7 @@
939939
maplist(get_type(Depth2, Self), List, Type),
940940
% Ensure the expression is not badly typed.
941941
\+ badly_typed_expression(Depth, Self, Type).
942-
get_type_cmpd_eval(Depth2, Self, EvalMe, Val, Type, eval_first) :-
942+
get_type_cmpd_eval(Depth2, Self, _EvalMe, Val, Type, eval_first) :-
943943
% Handle first-evaluation strategy.
944944
!,
945945
\+ needs_eval(Val),
@@ -1159,7 +1159,7 @@
11591159
% @arg X The input arguments.
11601160
% @arg Y The final adjusted arguments.
11611161
%
1162-
adjust_argsA(Else, Eq, RetType, Res, NewRes, Depth, Self, Op, X, Y) :-
1162+
adjust_argsA(_Else, Eq, RetType, Res, NewRes, Depth, Self, Op, X, Y) :-
11631163
len_or_unbound(X, Len),
11641164
get_operator_typedef(Self, Op, Len, ParamTypes, RRetType),
11651165
(nonvar(NewRes) -> CRes = NewRes ; CRes = Res),

0 commit comments

Comments
 (0)