Timothee Cour
b47a98f7f2
targets: use cpp instead of c++ everywhere (was by far the most common) ( #15961 )
...
(cherry picked from commit 96930b9cae )
2020-11-16 07:25:54 +01:00
Timothee Cour
95efe6d3ca
strengthen taddr.nim: add test case for #14578 ; reference other issues; test cpp ( #15960 )
...
(cherry picked from commit 1a47fc2291 )
2020-11-16 07:25:40 +01:00
Araq
1be3caf7c3
makes test green again
...
(cherry picked from commit fa7b12bcf9 )
2020-11-16 07:19:40 +01:00
Bung
42a3e31826
Fix #8404 JS backend doesn't handle float->int type conversion ( #15950 ) [backport]
...
* Fix #8404 JS backend doesn't handle float->int type conversion
* handle conv to uint as cast, discard other cases
* limit to int32, times use int64
* toInt including tyInt64 break times timezones lib, ignore for now
* also affect to vm
* move to tests/misc/t8404.nim
(cherry picked from commit 797cb2e67b )
2020-11-16 07:18:16 +01:00
flywind
b9260514fe
minor
...
(cherry picked from commit a86aa31081 )
2020-11-16 07:12:23 +01:00
flywind
5d88e6c5f5
add testcase for #9754
...
(cherry picked from commit a968e7dd9b )
2020-11-16 07:12:16 +01:00
flywind
a983c6a843
close #13062(add testcase for #13062 ) ( #15956 )
...
(cherry picked from commit d802a4a669 )
2020-11-16 07:09:55 +01:00
flywind
561902ca2b
close #2771(add testcase for #2771 ) ( #15932 )
...
(cherry picked from commit 7d51ad96e9 )
2020-11-16 07:09:39 +01:00
flywind
9b51f9b7e1
fix #15941 ( #15948 )
...
* fix #15941
* add testcase
* update
(cherry picked from commit 492e9afa4c )
2020-11-16 07:06:15 +01:00
flywind
71583cd2e9
add testcase
...
(cherry picked from commit 8ec3c141ae )
2020-11-16 07:05:58 +01:00
flywind
23ea176cb2
fix #15916 ( #15917 ) [backport]
...
* fix #15916
* add testcase for #15916
* add comments
(cherry picked from commit 402df0b061 )
2020-11-16 06:58:07 +01:00
Fanael Linithien
48e5520894
Fix #15909 ( #15914 )
...
(cherry picked from commit 7d4f70280e )
2020-11-16 06:57:46 +01:00
flywind
23b0b10886
fix #14157 ( #15877 )
...
* fix #14157
* Update compiler/jsgen.nim
* add changelog
* Update compiler/jsgen.nim
* Update tests/js/tmodify_cstring.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
(cherry picked from commit 1f9bf43100 )
2020-11-16 06:56:43 +01:00
Bung
04254fe9d6
fix #12726 Cannot take the compile-time sizeof Atomic types ( #15928 )
...
* fix #12726 Cannot take the compile-time sizeof Atomic types
* fix for arch 32
(cherry picked from commit 826e62953f )
2020-11-16 06:56:33 +01:00
Bung
272bc81f51
Fix 14127 js from int to int casting ( #15918 )
...
* fix #14127 from int to int casting
* add test for #14127
* use template for test, also test uint2int
* move to tests/types/t14127_cast_number.nim targets:c cpp js
(cherry picked from commit a81434a890 )
2020-11-16 06:56:24 +01:00
flywind
2e6cfe3a0d
close #4318(add testcase for #4318 ) ( #15904 )
...
* close #4318(add testcase for #4318 )
* Update tests/objects/t4318.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
(cherry picked from commit 35f8803250 )
2020-11-16 06:54:53 +01:00
Miran
04f810c2ec
Correct all eggs ( #15906 )
...
* "eg" is a misspelled "egg", "e.g." is "exempli gratia"
* Also, "ie" is "i.e.".
(cherry picked from commit bbe49a14ae )
2020-11-16 06:54:45 +01:00
flywind
a27ed88688
follow #15874(add testcase for #15874 ) ( #15893 )
...
(cherry picked from commit d8e7caf5dd )
2020-11-16 06:54:10 +01:00
cooldome
7724cd534f
fix #15825 ( #15894 )
...
* fix #15825
* better fix
(cherry picked from commit 338602a402 )
2020-11-16 06:53:59 +01:00
Clyybber
4e89dffc15
Add testcase for #14601 ( #15677 )
...
(cherry picked from commit 7435d912ad )
2020-11-16 06:53:52 +01:00
cooldome
18289607eb
Fix 15629 ( #15888 )
...
* fix #15858
* fix space
* fix #15629
* Revert "fix space"
* Revert "fix #15858 "
(cherry picked from commit 69fe707025 )
2020-11-09 16:25:22 +01:00
cooldome
d57418ab9e
Fix #15858 ( #15887 )
...
* fix #15858
* fix space
* fix #15629
* Revert "fix #15629 "
(cherry picked from commit d5a0a5dfff )
2020-11-09 16:25:14 +01:00
cooldome
283698b1ec
fix #15707 ( #15870 )
...
(cherry picked from commit 7b19217798 )
2020-11-09 16:24:20 +01:00
flywind
8f35bca839
fix #12558 ( #15864 )
...
* fix #12558
* Update compiler/pragmas.nim
(cherry picked from commit 673c5990c6 )
2020-11-09 16:24:00 +01:00
Clyybber
5ea4dea4ea
Closes #12897 ( #15867 )
...
(cherry picked from commit 60c364fb22 )
2020-11-09 16:22:13 +01:00
flywind
e7d14ce6f2
close #8829(add testcase for #8829 ) ( #15866 )
...
(cherry picked from commit fb60e35a54 )
2020-11-09 16:22:05 +01:00
flywind
ac32cf129b
fix #15851 ( #15852 )
...
* fix #15851
* {.cast(noSideEffect).}
(cherry picked from commit 218ff27b70 )
2020-11-09 16:21:16 +01:00
cooldome
992912e21d
static[T] related fixes ( #15853 )
...
* close #9679
* close #7546
* close #9520
* close #6177
(cherry picked from commit cdd459dd60 )
2020-11-09 16:21:11 +01:00
cooldome
ca53629c42
fix #15609 ( #15856 )
...
* fix #15609
* fix test
(cherry picked from commit fa5f225efc )
2020-11-09 16:21:03 +01:00
cooldome
1c027d591c
Fix #12636 ( #15850 )
...
* close #11142
* fix #12636
* undo unwanted changes
* fix illegal recursion case
(cherry picked from commit 3af7818af4 )
2020-11-09 16:20:43 +01:00
cooldome
0ed4c2bc4f
close #11142 ( #15847 )
...
(cherry picked from commit 9455a0c3e3 )
2020-11-09 16:19:28 +01:00
flywind
e5a04f8914
fix adding empty sequence to HTTP headers ( #15783 )
...
* fix adding empty sequence to HTTP headers
* add tests
(cherry picked from commit c4cc907433 )
2020-11-09 16:19:05 +01:00
flywind
8c31c210ee
fix #15663 ( #15839 ) [backport:1.4]
...
(cherry picked from commit 8e1fa84b0d )
2020-11-09 16:18:20 +01:00
flywind
64ded4a51f
fix #15463 ( #15831 )
...
(cherry picked from commit a8af664e8b )
2020-11-09 16:18:03 +01:00
flywind
5bc573cf1e
close #10307(add testcase for #10307 ) ( #15840 )
...
(cherry picked from commit dfa2f011d7 )
2020-11-09 16:15:42 +01:00
flywind
b100c67515
close #8457 ( #15844 )
...
(cherry picked from commit fdd25ed19c )
2020-11-09 16:15:35 +01:00
cooldome
01403f8cfa
fix static[Slice[T]] as argument issue ( #15842 )
...
(cherry picked from commit 4c19c5dfae )
2020-11-05 09:19:51 +01:00
c-blake
2443b40623
Clarify the sense in which Nim supports recursive iterators in the ( #15834 )
...
manual, the tutorial, and the `tbintree` test.
(cherry picked from commit f17555770e )
2020-11-05 09:19:35 +01:00
flywind
3565d14cc4
fix #15835 ( #15838 )
...
* fix #15835
* add tests
(cherry picked from commit 7d640e0943 )
2020-11-05 09:19:27 +01:00
flywind
740112c1e0
fix #12640 ( #15829 )
...
(cherry picked from commit b8bcf236dd )
2020-11-05 09:17:52 +01:00
flywind
bf446e8cec
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 >
(cherry picked from commit fde17b159f )
2020-11-05 09:17:42 +01:00
Andreas Rumpf
bb3cdcad99
fixes #15804 ( #15820 )
...
* fixes #15804
* fix the existing test
* add the testcase for #15804
Co-authored-by: narimiran <narimiran@disroot.org >
(cherry picked from commit dfd8a83f35 )
2020-11-05 09:17:29 +01:00
flywind
9954b7f046
fixes #15594 ( #15819 )
...
(cherry picked from commit eb429988cd )
2020-11-05 09:17:12 +01:00
flywind
9d9bf12e1c
Closure iterators are not supported by VM ( #15818 )
...
(cherry picked from commit 5b4c17b5e7 )
2020-11-05 09:16:10 +01:00
flywind
45e87ade15
fix #8821 ( #15809 )
...
(cherry picked from commit 544cb107c7 )
2020-11-05 09:16:00 +01:00
flywind
29cd083e12
fixes #15717
...
(cherry picked from commit 558115fa29 )
2020-11-05 09:13:09 +01:00
flywind
2e35621af0
fix #15815 ( #15817 )
...
(cherry picked from commit 919593395c )
2020-11-05 09:13:05 +01:00
flywind
e0aa7cf09b
fix #15145 ( #15816 )
...
(cherry picked from commit 27eb19cc48 )
2020-11-05 09:13:00 +01:00
flywind
98bd81b4a3
closes #3670 [add testcase for #3670 ] ( #15808 )
...
* add testcase
* Update tests/template/twhenintemplates.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
(cherry picked from commit 98cec6b692 )
2020-11-05 09:12:45 +01:00
flywind
f235eb48a0
fix #15651 ( #15800 )
...
* fix
* minor
(cherry picked from commit 80b0748d75 )
2020-11-05 09:12:17 +01:00