fixes regressions

This commit is contained in:
Araq 2018-10-30 09:21:11 +01:00
commit 331d1a6ca1
2 changed files with 21 additions and 10 deletions

View file

@ -23,6 +23,19 @@
#### Breaking changes in the compiler
- The compiler now implements the "generic symbol prepass" for `when` statements
in generics, see bug #8603. This means that code like this does not compile
anymore:
```nim
proc enumToString*(enums: openArray[enum]): string =
# typo: 'e' instead 'enums'
when e.low.ord >= 0 and e.high.ord < 256:
result = newString(enums.len)
else:
result = newString(enums.len * 2)
```
### Library additions
- There is a new stdlib module `editdistance` as a replacement for the