mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-10 03:10:44 +00:00
changed indexing of variables
This commit is contained in:
parent
9e77c422f2
commit
e2788a1c81
@ -97,9 +97,9 @@ public class Tree implements TermVisitorTree {
|
||||
@Override
|
||||
public InferenceStep visit(AppTerm appTerm, Map<VarTerm, TypeAbstraction> typeAssumptions, Type conclusionType) {
|
||||
Type leftType = typeVarFactory.nextTypeVariable();
|
||||
Type rightType = typeVarFactory.nextTypeVariable();
|
||||
InferenceStep leftPremise = appTerm.getFunction().accept(this, typeAssumptions, leftType);
|
||||
|
||||
Type rightType = typeVarFactory.nextTypeVariable();
|
||||
InferenceStep rightPremise = appTerm.getParameter().accept(this, typeAssumptions, rightType);
|
||||
|
||||
Type function = new FunctionType(rightType, conclusionType);
|
||||
|
Loading…
Reference in New Issue
Block a user