flywind
dfa2f011d7
close #10307(add testcase for #10307 ) ( #15840 )
2020-11-05 18:55:42 +08:00
flywind
fdd25ed19c
close #8457 ( #15844 )
2020-11-05 18:31:44 +08:00
cooldome
4c19c5dfae
fix static[Slice[T]] as argument issue ( #15842 )
2020-11-04 19:52:53 +01:00
c-blake
f17555770e
Clarify the sense in which Nim supports recursive iterators in the ( #15834 )
...
manual, the tutorial, and the `tbintree` test.
2020-11-04 16:56:22 +01:00
flywind
7d640e0943
fix #15835 ( #15838 )
...
* fix #15835
* add tests
2020-11-04 01:24:40 -05:00
flywind
b8bcf236dd
fix #12640 ( #15829 )
2020-11-03 11:41:41 +01:00
flywind
fde17b159f
follow #15818 and close #7109 ( #15823 )
...
* follow #15818 and close #7109
* Update compiler/jsgen.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
2020-11-02 18:27:39 +01:00
Miran
c243639979
ioutils are moved to fusion (#15822 )
2020-11-02 16:52:54 +01:00
Andreas Rumpf
dfd8a83f35
fixes #15804 ( #15820 )
...
* fixes #15804
* fix the existing test
* add the testcase for #15804
Co-authored-by: narimiran <narimiran@disroot.org >
2020-11-02 14:17:09 +01:00
flywind
eb429988cd
fixes #15594 ( #15819 )
2020-11-02 14:16:33 +01:00
Regis Caillaud
6fa82a5b3a
Handle BLOB column type in SQLite as binary data ( #15681 )
...
* Fixed not handling blob correctly in sqlite
* Fixed setLen commented by mistake
* Added binary example as db_sqlite doc
* Added tests for sqlite binary data
2020-11-02 13:02:55 +01:00
flywind
5b4c17b5e7
Closure iterators are not supported by VM ( #15818 )
2020-11-02 10:58:14 +01:00
flywind
544cb107c7
fix #8821 ( #15809 )
2020-11-02 10:41:44 +01:00
flywind
558115fa29
fixes #15717
2020-11-02 10:27:48 +01:00
flywind
919593395c
fix #15815 ( #15817 )
2020-11-02 10:22:26 +01:00
flywind
27eb19cc48
fix #15145 ( #15816 )
2020-11-02 08:56:51 +01:00
flywind
98cec6b692
closes #3670 [add testcase for #3670 ] ( #15808 )
...
* add testcase
* Update tests/template/twhenintemplates.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-11-01 19:53:00 +01:00
flywind
80b0748d75
fix #15651 ( #15800 )
...
* fix
* minor
2020-10-31 12:06:13 +01:00
flywind
bc9a521270
[ closes #12682 ]add testcase for #12682 ( #15796 )
...
* add testcase for #12682
* fix
2020-10-31 03:03:51 +01:00
flywind
ae86df12af
add testcase for #14227 ( #15794 )
2020-10-30 15:53:45 +01:00
flywind
2cfe5e0745
[ closes #11625 and closes #2488 ]add global and threadvar(with --threads:off mode ) pragmas supports for JS backend ( #15772 )
...
* add global pragma support for js backend
* globalThis
* add support for threadvar
* more tests
* Update compiler/jsgen.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-10-30 15:34:07 +01:00
flywind
4374c638cd
closes #6036 ( #15779 )
...
* add testcase for #6036
* try
* try again
* make it work
2020-10-30 10:00:25 +01:00
flywind
1725db9295
closes #7374 ( #15781 )
...
* add testcase for #7374
* minor
* fix test
2020-10-30 09:59:56 +01:00
flywind
3028c1be82
add testcase for #7416 ( #15782 )
2020-10-30 09:59:38 +01:00
flywind
17f08b2939
closes #7658 ( #15784 )
...
* fix #7658
* more
2020-10-30 09:58:55 +01:00
flywind
2de90a14cb
add testcase for #8012 ( #15785 )
2020-10-30 09:57:26 +01:00
flywind
1655c04aa3
add testcase for #9165 ( #15787 )
2020-10-30 09:57:02 +01:00
flywind
b5df823191
add testcase for #9091 ( #15791 )
...
* add testcase for #9091
* more tests
2020-10-30 09:55:21 +01:00
flywind
f79ded3cb6
fix #15638 ( #15789 )
2020-10-30 09:16:47 +01:00
flywind
d8fb2379c9
add testcase for #7127 ( #15780 )
2020-10-30 03:54:39 +01:00
flywind
33e258c72f
add tests for #7686 ( #15771 )
2020-10-29 18:12:14 +01:00
Andreas Rumpf
87a60c1b28
fixes #15413 ( #15768 )
...
* fixes #15413
* better hide it properly
* see if this makes our list of important packages happy
2020-10-29 17:32:56 +01:00
cooldome
610e9b2fe9
fix #15756 ( #15761 )
...
* fix #15756
* simplify test
2020-10-28 13:24:38 +00:00
cooldome
0956a99537
ARC now capable of custom extra alignment. Ref, closure and seq support. ( #15697 )
2020-10-28 14:00:49 +01:00
narimiran
732ddc02da
change/remove deprecated stuff
2020-10-28 10:20:18 +01:00
narimiran
b13fb9ddb8
fix #15750
2020-10-28 10:20:18 +01:00
cooldome
f8cac6bbbc
fix #15752 ( #15754 )
2020-10-28 00:09:26 +01:00
Timothee Cour
0fb878324e
honor --declaredLocs in more places, including type mismatch errors; also show kind with --declaredLocs ( #15673 )
...
* honor --declaredLocs in more places, including type mismatch errors
* fix tests
* show declaration location also when type mismatch names clash
2020-10-27 14:19:28 +01:00
shirleyquirk
218acfe367
fixes #10456,#12928 issues when chaining templates to sortedByIt ( #15734 )
...
* update c_malloc's to csize_t
fix for broken --os:ios
* I'm an idiot sorry
* Create talgorithm.nim
* workaround for #10456
I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is.
* working test, use typeof rather than auto
2020-10-27 12:38:46 +00:00
Regis Caillaud
12143d90c8
Add C function dup and dup2 posix to system/io ( #15675 )
...
* * Add handle to dup and dup2 posix as duplicate and duplicateTo in std/ioutils.
* Added small test & changelog entry
* Fixed import in tioutils
removed when isMainModule
* * Nest test inside block. Rename proc var -> let in captureStdout
* Renamed tmpfile to iotuils.txt
* Added block: # duplicate, duplicateTo
* Improved docstring
* Clean non-idiomatic code
* Added runnable examples
* rm 2 trailing space in expected output
* Made syntax prettier
* Runnable example: file in getTempDir()
* Tmp -> Temp
* Fixed runnableExamples on windows
2020-10-27 08:52:40 +01:00
n5m
066f3ebc2a
add tests for Testament "reject" action ( #15709 )
...
* add test for reject action
* highlight that a compilation failure is expected
* add the converse test for action=reject
* add trailing newline
* fix wording
2020-10-27 08:48:14 +01:00
Timothee Cour
3bdc000521
[backport] fix #15595 procvar == works in VM ( #15724 )
2020-10-26 22:19:05 +02:00
Andreas Rumpf
cf01945f54
ensure the Nim compiler works with --experimental:strictFuncs --experimental:views [backport:1.4] ( #15737 )
2020-10-26 21:08:57 +01:00
Timothee Cour
86d7726fb8
workaround #15725 disable freebsd tblocking_channel.nim ( #15726 )
2020-10-26 10:53:39 +02:00
Timothee Cour
d4c2e2c53f
fix #15704 #15597 wrong VM register was freed ( #15705 )
...
* fix #15704 #15597 wrong VM register was freed
* same treatment for nkCheckedFieldExpr
* note concerning HighRegisterPressure
* bump NimPatch
* Update lib/system.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-10-26 09:13:37 +01:00
Timothee Cour
b56a037183
workaround #15713 disable freebsd tssl.nim ( #15718 )
2020-10-26 03:10:38 +02:00
Clyybber
d4022ebe53
Revert "fixes #15280 [backport:1.2] ( #15281 )" ( #15700 )
...
This reverts commit 3f00a738db .
2020-10-24 11:45:18 +02:00
Timothee Cour
bf894ad3eb
close #8007 ( #15695 )
2020-10-23 23:16:47 +02:00
cooldome
ae320b4e7d
fix #15662 ( #15678 )
...
* fix #15662
* alternative fix
* fix spacing
2020-10-23 11:14:54 +02:00
Clyybber
01a62320f0
Fix #12410 ( #15685 )
...
* Fix #12410 , big thanks to @pmetras for this fix
* Add testcase
2020-10-23 03:26:50 +02:00