Revision 10
Added by Willibald K. over 8 years ago
OoaResolveExpressionsVisitor.java | ||
---|---|---|
1326 | 1326 |
case greaterequal: |
1327 | 1327 |
case less: |
1328 | 1328 |
case lessequal: |
1329 |
if (!((rt.IsNumeric() && lt.IsNumeric()) || (rt.IsQualitative() && lt.IsQualitative())))
|
|
1330 |
return Error(expression, "Operator expects LHS and RHS to be numeric or qualitative");
|
|
1329 |
if (!((rt.IsNumeric() && lt.IsNumeric()) )) |
|
1330 |
return Error(expression, "Operator expects LHS and RHS to be numeric"); |
|
1331 | 1331 |
cover = Type.CoverType(lt, rt); |
1332 | 1332 |
if (cover != null) |
1333 | 1333 |
{ |
Also available in: Unified diff
restrict list casts to something useful - i.e. inner type sizes must not change; this is in preparation for faster dynamic list support in momut; deep casts now need to be done manually by the user via fold operations or can be added again to the ooas compiler as a more expensive, special cast operator; also more cleaning of Qualitative Action System stuff