if (!bittype.promotesTo(ot))
if (!ot.promotesTo(inttype))
                public Object visitExprUnary(ExprUnary expr)                {                    Type ot = getType(expr.getExpr());                    if (ot != null)                    {                        Type inttype =                            new TypePrimitive(TypePrimitive.TYPE_INT);                        Type bittype =                            new TypePrimitive(TypePrimitive.TYPE_BIT);                                            switch(expr.getOp())                        {                        case ExprUnary.UNOP_NEG:                            if (!inttype.promotesTo(ot))                                report(expr, "cannot negate " + ot);                            break;                                                    case ExprUnary.UNOP_NOT:                            if (!bittype.promotesTo(ot))                                report(expr, "cannot take boolean not of " +                                       ot);                            break;                                                    case ExprUnary.UNOP_PREDEC:                        case ExprUnary.UNOP_PREINC:                        case ExprUnary.UNOP_POSTDEC:                        case ExprUnary.UNOP_POSTINC:                            if (!inttype.promotesTo(ot))                                report(expr, "cannot perform ++/-- on " + ot);                            break;                        }                    }                                        return super.visitExprUnary(expr);                }