summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fixes #19631 (#19618)Andreas Rumpf2022-03-201-0/+31
| | | Aliasing is hard and we have to watch out not to compile 'x = f(x.a)' into 'f(x.a, addr x)'
* Removed deprecated httpcore func (#19550)Juan Carlos2022-03-181-4/+4
| | | | | | | | | * Remove Deprecated httpcore func * Remove Deprecated httpcore func * Fix a test with Deprecated func * Restart CI, Apple can code shit anymore I tell you
* support useVersion:1.6 (#19601)flywind2022-03-102-3/+51
|
* enable nimPreviewDotLikeOps (#19598)flywind2022-03-092-1/+1
|
* fixes #19575 (#19596) [backport]Andreas Rumpf2022-03-091-0/+23
| | | | | * fixes #19575 * better bugfix
* register callback for marshal in VM (#19578)flywind2022-03-081-6/+36
| | | | | | | | | | | | | * register callback for marshal in VM * remove unrelated code * polish * more tests * more tests * add loadVM and toVM
* fix #19266; allow reassign discriminant field (#19567)flywind2022-02-251-0/+22
| | | | | * add inUncheckedAssignSection * add one more test
* Allow std/macros.params to work with nnkProcTy (#19563)Tanguy2022-02-251-0/+22
| | | | | * Allow std/macros.params to work with nnkProcTy * Add tests for proc params & pragma
* [testcase] genSym fails to make unique identifier for ref object types (#19506)flywind2022-02-141-0/+60
| | | close #15118
* Remove deprecated math.c_frexp (#19518)Juan Carlos2022-02-141-6/+0
| | | | | | | * Remove Deprecated math proc * Remove Deprecated math proc * Remove Deprecated math proc
* use OrderedTable instead of OrderedTableRef for mimedb (#19522)David Krause2022-02-141-0/+2
| | | | | | | | | * use OrderedTable instead of OrderedTableRef for mimedb Signed-off-by: David Krause <enthus1ast@users.noreply.github.com> * added changelog entry for mimedb change Signed-off-by: David Krause <enthus1ast@users.noreply.github.com>
* fix #16458; make useNimRtl compile for --gc:orc (#19512)flywind2022-02-111-0/+6
| | | | | * fix #16458; make useNimRtl compile for --gc:orc/arc * fix tests
* don't use a temp for addr [backport: 1.6] (#19503)flywind2022-02-081-0/+22
| | | | | | | | | | | | | * don't use a temp for addr fix #19497 * Update compiler/ccgcalls.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * add a test Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Fix bug 27 of #17340 (#19433)Andrey Makarov2022-02-072-8/+30
| | | | | | Fixes silent disappearance of Markdown (pseudo-)link when it's detected as unsafe protocol. Now it will be converted to plain text in spirit of [the specification](https://spec.commonmark.org/0.30/#links). For that sake the check for protocol is added to rst.nim also.
* undefine C symbols in JS backend [backport:1.6] (#19437)flywind2022-02-041-0/+6
| | | fix #19330; fix #19059
* fix parseEnum cannot parse enum with const fields (#19466)flywind2022-02-041-0/+11
| | | fix #19463
* correct typos (#19485)flywind2022-02-031-1/+1
|
* move io out of system (#19442)flywind2022-02-022-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * move io out of system * fix tests * fix tests * next step * rename to syncio * rename * fix nimscript * comma * fix * fix parts of errors * good for now * fix test
* Clonkk fix2 11923 (#19451)Regis Caillaud2022-02-021-0/+6
| | | | | | | * fix nnkBracketExpr not compiling for getImpl on customPragmaNode * fix test import * fix alias not working with hasCustomPragmas
* No longer segfault when using a typeclass with a self referencing type (#19467)Jason Beetham2022-02-021-0/+12
|
* fix broken CI (#19472)flywind2022-01-311-6/+6
| | | | | | | * fix broken CI * fix * fix tests
* [add testcase] NRVO does not occur with init procedures (#19462)flywind2022-01-291-0/+28
| | | | | | | * [add testcase] NRVO does not occur with init procedures close #19094 * Update tests/ccgbugs2/tcodegen.nim
* Merge pull request from GHSA-ggrq-h43f-3w7mDominik Picheta2022-01-291-7/+38
| | | | This fixes a CVE (currently https://github.com/nim-lang/Nim/security/advisories/GHSA-ggrq-h43f-3w7m)
* nvro don't touch cdecl types [backport: 1.6] (#19461)flywind2022-01-281-0/+18
| | | * nvro don't touch cdecl types; fix #19342 again
* New/better macro pragmas, mark some as experimental (#19406)metagn2022-01-203-63/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New/better macro pragmas, make some experimental fix #15920, close #18212, close #14781, close #6696, close https://github.com/nim-lang/RFCs/issues/220 Variable macro pragmas have been changed to only take a unary section node. They can now also be applied in sections with multiple variables, as well as `const` sections. They also accept arguments. Templates now support macro pragmas, mirroring other routine types. Type and variable macro pragmas have been made experimental. Symbols without parentheses instatiating nullary macros or templates has also been documented in the experimental manual. A check for a redefinition error based on the left hand side of variable definitions when using variable macro pragmas was disabled. This nerfs `byaddr` specifically, however this has been documented as a consequence of the experimental features `byaddr` uses. Given how simple these changes are I'm worried if I'm missing something. * accomodate compiler boot * allow weird pragmas * add test for #10994 * remove some control flow, try remove some logic
* Fix #11923 (#19427)Regis Caillaud2022-01-201-0/+10
| | | | | * Apply commit https://github.com/nim-lang/Nim/commit/5da931fe811717a45f2dd272ea6281979c3e8f0b that was never merged (was part of a bigger PR). Should fix issue #11932 * add a generic object for custom pragma
* Resolve cross file resolution errors in atomics (#19422) [backport:1.6]James2022-01-202-0/+20
| | | | | * Resolve call undeclared routine testAndSet * Fix undeclared field atomicType
* Added `std/envvars` for env vars handling (#19421)flywind2022-01-201-0/+59
|
* Don't reject types directly on AST (#19407)metagn2022-01-191-0/+9
| | | | | | | Instead of rejecting type expressions based on node kind, evaluate the expression as a type. This is already the behavior for call results, and it has its own error for non-types, which is the same error you would normally get with 2 words swapped.
* fix term rewriting with sideeffect (#19410)flywind2022-01-191-0/+19
| | | | | | | | | * fix term rewriting with sideeffect fix #6217 * add tests * Update tests/template/template_various.nim
* Added `std/oserrors` for OS error reporting (#19390)flywind2022-01-171-0/+9
| | | | | | | | | * Added 'std/oserrors' for OS error reporting * add a simple test * New code should not support -d:useWinAnsi anymore thanks to @Araq
* Optimize lent in JS [backport:1.6] (#19393)hlaaftana2022-01-172-8/+45
| | | | | | | * Optimize lent in JS [backport:1.6] * addr on lent doesn't work anymore, don't use it * use unsafeAddr in test again for older versions
* mangle names in nimbase.h using cppDefine (#19395) [backport]flywind2022-01-171-0/+16
| | | | mangle names in nimbase.h fix comments
* add mm to compilesettings; deprecate gc (#19394)flywind2022-01-161-1/+2
|
* deprecate unsafeAddr; extend addr (#19373)flywind2022-01-1624-39/+39
| | | | | | | | | | | | | | | | | | | | | | | | | * deprecate unsafeAddr; extend addr addr is now available for all addressable locations, unsafeAddr is deprecated and become an alias for addr * follow @Vindaar's advice * change the signature of addr * unsafeAddr => addr (stdlib) * Update changelog.md * unsafeAddr => addr (tests) * Revert "unsafeAddr => addr (stdlib)" This reverts commit ab83c99c507048a8396e636bf22d55fdd84d7d1c. * doc changes; thanks to @konsumlamm Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Use openarray of bytes in md5 (#19307)hlaaftana2022-01-153-9/+16
| | | | | | | | | | * Use openarray of bytes in md5 * fix CI * cleanup * use noSideEffect for bootstrapping * fix CI again * actually fix CI by checking if it works * this is getting ridiculous * put old md5 version in compiler, remove vmop
* Fixed concept constraints for static types (#19391)Jason Beetham2022-01-151-25/+62
|
* Generic parameters now can constrain statics in type definitions (#19362)Jason Beetham2022-01-141-0/+42
| | | | | | | | | * Parameters now can constrain static in type definitions resolved regression with generic procedures * Update compiler/sigmatch.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* nrvo shouldn't touch bycopy object[backport:1.2] (#19385)flywind2022-01-142-0/+30
| | | fix nim-lang#19342
* fix stylecheck error with asyncdispatch (#19350)flywind2022-01-102-0/+34
| | | | | | | | | | | | | | | | | | | | | * stylecheck usages part two: stdlib cleanup typeinfo.nim: importCompilerProc => importcompilerproc nre.nim: newLineFlags => newlineFlags system.nim: JSRoot => JsRoot ref #19319 * prefer importCompilerProc * fix stylecheck error with asyncdispatch it is a partial regression since #12842 * add tests * don't use echo in tests
* Fix `remove` on last node of singly-linked list [backport:1.6] (#19353)gecko2022-01-101-0/+13
|
* style usages part one (openarray => openArray) (#19321)flywind2022-01-0449-76/+76
| | | | | * style usages (openArray) * revert doc changes
* Fix #19314 - fixing broken `DoublyLinkedList` after adding empty ↵rockcavera2022-01-031-0/+12
| | | | | | | `DoublyLinkedList` (#19315) [backport] * Update lists.nim * Update tlists.nim
* Add Week-Of-Year Implementation to Times Module (#17223)Carlo Capocasa2022-01-031-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * initial * more tests * Apply suggestions from code review idiomatize Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * test iron age dates * add examples * fix typo * consistent param mention * add since pragrams * add changelog * Update lib/pure/times.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * fix examples * fix negative years * add getWeeksInYear tests * add back fix dropped by rebase * week-year tuple api * add changelog * fix doc tags * add docstrings * fix typos Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Allow full commands and blocks in type sections (#19181)hlaaftana2022-01-025-0/+368
| | | | | | | * allow full commands and blocks in type sections * update grammar * fix changelog [skip ci] * more tests * even more tests
* Update JS and nimscript import tests (#19306)hlaaftana2022-01-012-40/+53
| | | | | * add new modules, except experimental ones * remove deprecated modules mersenne and sharedlist * better describe why some modules fail and some modules don't
* Fix #19297 - fixing broken list after adding empty list (#19299)rockcavera2021-12-301-0/+12
| | | | | | | | | * Update lists.nim * Update tlists.nim * removed check `if b.tail != nil` The tail of the list being null it is still possible to retrieve its end by going through all nodes from the head. So checking for null from `b.tail` is unnecessary. However, setting `a.tail = b.tail` only if `a.head != nil`, so you don't break a good list with an already broken one.
* Fixed object field access of static objects in generics (#19283) [backport]Jason Beetham2021-12-231-0/+8
|
* Extract runnables that specify `doccmd` (#19275) [backport:1.6]Jake Leahy2021-12-201-0/+20
|
* fix #19244 - solves the problem of the InAddr object constructor in Windows. ↵rockcavera2021-12-171-0/+6
| | | | | | | (#19259) * Update winlean.nim * Update tnet_ll.nim