From 9c35f04a096183118ad01260bac8c3ba5507e98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pl=C3=BCmicke?= Date: Wed, 21 Feb 2018 17:22:23 +0100 Subject: [PATCH] modified: src/de/dhbwstuttgart/typeinference/unify/RuleSet.java --- src/de/dhbwstuttgart/typeinference/unify/RuleSet.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/dhbwstuttgart/typeinference/unify/RuleSet.java b/src/de/dhbwstuttgart/typeinference/unify/RuleSet.java index 0b51a25e..b3cb0dec 100644 --- a/src/de/dhbwstuttgart/typeinference/unify/RuleSet.java +++ b/src/de/dhbwstuttgart/typeinference/unify/RuleSet.java @@ -429,7 +429,9 @@ public class RuleSet implements IRuleSet{ Unifier unif = Unifier.identity(); for(int i = 0; i < typeDParams.size(); i++) { System.out.println("ADAPT" +typeDgenParams); + if (typeDgenParams.get(i) instanceof PlaceholderType) unif.add((PlaceholderType) typeDgenParams.get(i), typeDParams.get(i)); + else System.out.println("ERROR"); } return Optional.of(new UnifyPair(unif.apply(newLhs), typeDs, PairOperator.SMALLERDOT)); }