breaking change: 'and' and 'mod' do not produce a subrange type anymore; fixes #5854

This commit is contained in:
Andreas Rumpf
2017-10-30 00:27:30 +01:00
parent aa526da706
commit d7a896f19d
6 changed files with 16 additions and 131 deletions

View File

@@ -550,7 +550,6 @@ proc evalAtCompileTime(c: PContext, n: PNode): PNode =
result = semfold.getConstExpr(c.module, call)
if result.isNil: result = n
else: return result
result.typ = semfold.getIntervalType(callee.magic, call)
block maybeLabelAsStatic:
# XXX: temporary work-around needed for tlateboundstatic.