diff --git a/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java b/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java index c8bc2963..ae31cfa3 100644 --- a/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java +++ b/src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java @@ -861,7 +861,8 @@ public class TYPEStmt implements StatementVisitor { for (var child : switchStmt.getBlocks()) { for (var label : child.getLabels()) { if (label.getPattern() == null) { - System.out.println("DefaultCase"); + System.out.println("Default-Case"); + constraintsSet.addUndConstraint(new Pair(new RefType(new JavaClassName("java.lang.Object"), new NullToken()), switchStmt.getSwitch().getType(), PairOperator.SMALLERDOT, loc(label.getOffset()))); } if (label.getPattern() instanceof RecordPattern) { RecordPattern recordPattern = (RecordPattern) label.getPattern();