forked from JavaTX/JavaCompilerCore
Class fügt Assumptions von Paralist richtig hinzu
This commit is contained in:
parent
038e65970c
commit
f51b5d5b7c
5
bin/.gitignore
vendored
5
bin/.gitignore
vendored
@ -1,6 +1 @@
|
|||||||
/bytecode
|
|
||||||
/mycompiler
|
/mycompiler
|
||||||
/plugindevelopment
|
|
||||||
/syntaxTree
|
|
||||||
/typinferenz
|
|
||||||
/parser
|
|
||||||
|
@ -666,6 +666,9 @@ public class Class extends SyntaxTreeNode implements AClassOrInterface, IItemWit
|
|||||||
|
|
||||||
ConstraintsSet oderConstraints = new ConstraintsSet();
|
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){
|
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
|
if(gparam instanceof GenericTypeVar)oderConstraints.add(((GenericTypeVar)gparam).TYPE(assumptions)); //Constraints für die Generischen Variablen erstellen und diese dem AssumptionsSet hinzufügen
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user