diff --git a/src/de/dhbwstuttgart/syntaxtree/statement/UnaryExpr.java b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryExpr.java index 53903512..30bd4375 100755 --- a/src/de/dhbwstuttgart/syntaxtree/statement/UnaryExpr.java +++ b/src/de/dhbwstuttgart/syntaxtree/statement/UnaryExpr.java @@ -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; }