forked from JavaTX/JavaCompilerCore
Fehler in PostIncrement/UnaryExpression behoben
This commit is contained in:
parent
d2f50069d2
commit
59b574f040
@ -37,6 +37,7 @@ public abstract class UnaryExpr extends Expr
|
||||
ret.add(new RefType("Integer",this,-1));
|
||||
ret.add(new RefType("Long",this,-1));
|
||||
ret.add(new RefType("Double",this,-1));
|
||||
ret.add(new RefType("Float",this,-1));
|
||||
return ret ;
|
||||
}
|
||||
|
||||
@ -59,7 +60,9 @@ public abstract class UnaryExpr extends Expr
|
||||
|
||||
@Override
|
||||
public ConstraintsSet TYPEStmt(TypeAssumptions assumptions) {
|
||||
return this.TYPEExpr(assumptions);
|
||||
ConstraintsSet ret = this.TYPEExpr(assumptions);
|
||||
this.setType(new de.dhbwstuttgart.syntaxtree.type.Void(this, -1).TYPE(assumptions, this));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user