Fehler in PostIncrement/UnaryExpression behoben

This commit is contained in:
JanUlrich 2015-06-26 19:42:25 +02:00
parent d2f50069d2
commit 59b574f040

View File

@ -37,6 +37,7 @@ public abstract class UnaryExpr extends Expr
ret.add(new RefType("Integer",this,-1)); ret.add(new RefType("Integer",this,-1));
ret.add(new RefType("Long",this,-1)); ret.add(new RefType("Long",this,-1));
ret.add(new RefType("Double",this,-1)); ret.add(new RefType("Double",this,-1));
ret.add(new RefType("Float",this,-1));
return ret ; return ret ;
} }
@ -59,7 +60,9 @@ public abstract class UnaryExpr extends Expr
@Override @Override
public ConstraintsSet TYPEStmt(TypeAssumptions assumptions) { 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;
} }