From 863f8ec2ec85ad52756786dc2be1e2af62dfe8d4 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Wed, 18 Jun 2014 11:53:39 +0200 Subject: [PATCH] =?UTF-8?q?Problem=20mit=20Generischen=20Variabeln=20in=20?= =?UTF-8?q?Klassendeklarationen=20gel=C3=B6st?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycompiler/myclass/Class.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mycompiler/myclass/Class.java b/src/mycompiler/myclass/Class.java index fcefae16..3f8efa0b 100755 --- a/src/mycompiler/myclass/Class.java +++ b/src/mycompiler/myclass/Class.java @@ -652,8 +652,8 @@ public class Class extends SyntaxTreeNode implements AClassOrInterface, IItemWit //Globale Assumptions anfügen: assumptions.add(globalAssumptions); - for(GenericTypeVar gparam : this.genericClassParameters){ - gparam.TYPE(assumptions); //Constraints für die Generischen Variablen erstellen und diese dem AssumptionsSet hinzufügen + for(Type gparam : this.paralist){ + if(gparam instanceof GenericTypeVar)((GenericTypeVar)gparam).TYPE(assumptions); //Constraints für die Generischen Variablen erstellen und diese dem AssumptionsSet hinzufügen } typinferenzLog.debug("Erstellte Assumptions: "+assumptions);