fix #13432 typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] (#14799)

* typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[]

* changelog
This commit is contained in:
Timothee Cour 2020-06-29 00:34:05 -07:00 • committed by GitHub
commit 1b41c3122b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 22 deletions

View file

@ -115,6 +115,7 @@
- `macros.newLit` now preserves named vs unnamed tuples; use `-d:nimHasWorkaround14720` to keep old behavior
- Add `random.gauss`, that uses the ratio of uniforms method of sampling from a Gaussian distribution.
- Add `typetraits.elementType` to get element type of an iterable.
- `typetraits.$`: `$(int,)` is now `"(int,)"`; `$tuple[]` is now `"tuple[]"`
## Language changes
- In the newruntime it is now allowed to assign to the discriminator field