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
commit d7a896f19d
6 changed files with 16 additions and 131 deletions

View file

@ -28,3 +28,6 @@
take ``BackwardsIndex`` indices. ``BackwardsIndex`` is produced by ``system.^``.
This means if you overload ``[]`` or ``[]=`` you need to ensure they also work
with ``system.BackwardsIndex`` (if applicable for the accessors).
- ``mod`` and bitwise ``and`` do not produce ``range`` subtypes anymore. This
turned out to be more harmful than helpful and the language is simpler
without this special typing rule.