Class fügt Assumptions von Paralist richtig hinzu

This commit is contained in:
JanUlrich 2014-07-17 20:17:59 +02:00
parent 038e65970c
commit f51b5d5b7c
2 changed files with 4 additions and 6 deletions

5
bin/.gitignore vendored
View File

@ -1,6 +1 @@
/bytecode
/mycompiler
/plugindevelopment
/syntaxTree
/typinferenz
/parser

View File

@ -665,7 +665,10 @@ public class Class extends SyntaxTreeNode implements AClassOrInterface, IItemWit
assumptions.add(globalAssumptions);
ConstraintsSet oderConstraints = new ConstraintsSet();
for(Type gparam : this.paralist){
if(gparam instanceof GenericTypeVar)assumptions.add(((GenericTypeVar)gparam).createAssumptions()); //Constraints für die Generischen Variablen erstellen und diese dem AssumptionsSet hinzufügen
}
for(Type gparam : this.paralist){
if(gparam instanceof GenericTypeVar)oderConstraints.add(((GenericTypeVar)gparam).TYPE(assumptions)); //Constraints für die Generischen Variablen erstellen und diese dem AssumptionsSet hinzufügen
}