From 1ace099d7233fcb59d0cbc231985b447385ccd83 Mon Sep 17 00:00:00 2001 From: Daniel Holle Date: Thu, 12 Dec 2024 14:06:33 +0100 Subject: [PATCH] Undo --- src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPE.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPE.java b/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPE.java index 6b591324..5b38591a 100644 --- a/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPE.java +++ b/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPE.java @@ -118,7 +118,7 @@ public class TYPE { FormalParameter param = (FormalParameter) allClass.getConstructors().getFirst().getParameterList().getParameterAt(counter); FieldAssumption assumption = new FieldAssumption(param.getName(), allClass, param.getType(), blockInformation.getCurrentTypeScope()); - var fieldCons = new Pair(el.getType(), assumption.getType(resolver), PairOperator.EQUALSDOT); + var fieldCons = new Pair(el.getType(), assumption.getType(resolver), PairOperator.SMALLERDOT); var recvCons = new Pair(refType, assumption.getReceiverType(resolver), PairOperator.EQUALSDOT); constraintSet.addUndConstraint(fieldCons); constraintSet.addUndConstraint(recvCons);