ringabout
1707bc4a99
fixes #20856 ; store defaults directly ( #20859 )
...
* fixes #20856 ; store defaults directly
* fixes
* fixes
* check
* fixes
2022-11-17 09:38:50 +08:00
ringabout
cdbf5b4699
fixes a severe bug of testament ( #20832 )
...
* test azure
* use exit 1
* try again
* use useSysAssert
* disable i386
* use refc for tlsEmulation on i386
* use refc
* disable i386
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2022-11-17 09:38:07 +08:00
ringabout
e03a178bff
rename std/threads to std/typedthreads ( #20850 )
...
* rename `std/threads` to `std/oldthreads`
* fixes tests
* rename to `typedthreads`
* changelog
2022-11-16 16:35:20 +01:00
ringabout
06cd15663d
fixes ptr to cstring warnings[backport] ( #20848 )
...
* fix =#13790 ptr char (+friends) should not implicitly convert to cstring
* Apply suggestions from code review
* first round; compiles on windows
* nimPreviewSlimSystem
* conversion is unsafe, cast needed
* fixes more tests
* fixes asyncnet
* another try another error
* last one
* true
* one more
* why bugs didn't show at once
* add `nimPreviewCstringConversion` switch
* typo
* fixes ptr to cstring warnings[backport]
* add fixes
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-11-16 10:22:51 +01:00
ringabout
3d692d08f7
fixes a long-standing ARC bug ( #20849 )
...
* fixes an ARC bug
* add a testcase
2022-11-16 07:36:14 +01:00
Derek 呆
de89f6ce32
add more test for #20836 ( #20842 )
2022-11-14 13:49:11 -05:00
ringabout
7f2ff909d9
fixes object default fields bugs and add tests ( #20839 )
...
* fixes object default fields bugs and add tests
* Update compiler/semmagic.nim
* Update compiler/sem.nim
* Update compiler/sem.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-11-15 00:31:06 +08:00
ringabout
d901d3b8c5
fixes #20836 ; fixes #20833 ; fixes unsafeNew ( #20841 )
...
* fixes #20836 ; fixes `unsafeNew`
* fixes #20833
2022-11-14 15:59:37 +01:00
ringabout
7db0d2bb58
fixes a CI error ( #20834 )
2022-11-14 14:05:13 +08:00
ringabout
d73fff1ecc
fixes flaky CI with channels and ORC ( #20831 )
...
fixes flasky CI with channels
channels doesn't seem to work well with arc/orc
2022-11-13 15:29:47 +08:00
ringabout
cfab08d985
fixes tests and add notes ( #20830 )
2022-11-13 05:52:21 +01:00
Bung
1410243d3b
fix #3505 wrong var {.global.} initialization, asign variable to it ( #20812 )
...
* fix #3505 wrong var {.global.} initialization, asign variable to it
* fix #5132 as well
* follow suggestions
* handle all call kinds
* Update tests/global/t3505.nim
* Update compiler/semstmts.nim
* Update compiler/semstmts.nim
* Update compiler/semstmts.nim
* follow suggestion
* Update compiler/semstmts.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-11-12 22:57:07 +01:00
Andreas Rumpf
165d523edf
Revert "fixes #20699 ; generate an empty struct for void type" ( #20806 )
...
* Revert "fixes #20699 ; generate an empty struct for void type (#20790 )"
This reverts commit 8fcb9380f0 .
* better fix [backport]
2022-11-12 22:56:40 +01:00
metagn
77e58bf573
fixes #20807 , refs #20450 , regression with seq inference ( #20818 )
2022-11-12 05:27:51 +01:00
Derek 呆
6007a40eac
support UncheckedArray[T] in repr_v2.nim ( #20816 )
2022-11-11 19:31:59 +01:00
ringabout
15bffc20ed
fixes tests for quit ( #20813 )
...
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-11-11 12:01:35 +01:00
Vindaar
cc2b0f0172
[sugar] handle HiddenDeref in capture, error at CT if unsupported nnk ( #20680 )
...
* [sugar] handle HiddenDeref in capture, error at CT if unsupported nnk
Instead of running into trouble of the `.strVal` access failing, it's
better to error at CT.
* [tests] remove unnecessary import in test case
* improve ident extraction & extend test cases
* [tests] improve tests for `capture` of different types & act. check
2022-11-10 15:42:53 -05:00
ringabout
2848cdb18a
fixes #13781 ; fixes #14901 ; add acyclic pragmas to FlowVar ( #20804 )
...
* add acyclic pragmas to FlowVar
* add testcases
2022-11-10 16:54:39 +08:00
Bung
82e99f2332
fix topt_no_cursor.nim ( #20791 )
2022-11-09 15:52:44 -05:00
Aditya Siram
8fcb9380f0
fixes #20699 ; generate an empty struct for void type ( #20790 )
...
* fixes #20699 ; generate an empty struct for void type
* Add docs and test case.
2022-11-09 20:15:06 +01:00
ringabout
600b3a91ab
fixes regression #20746 ; remove string copies for ORC booted compiler ( #20776 )
...
* fixes #20746 ; remove string copies for ORC booted compiler
* add a test case
* use `cursor` thanks to @beef331
* for old compilers
* change file extension
* change test cases
2022-11-07 14:36:43 +01:00
ringabout
a228e331f3
fixes regression #17121 ; adding doc comment in importc proc makes it silently noop at CT ( #20766 )
...
* fixes regression #17121 ; adding doc comment in importc proc makes it silently noop at CT
* Update compiler/vmgen.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-11-06 22:25:55 +08:00
Bung
bae0fb720a
fix #19149 Invalid codegen when returning var tuple from a template ( #20762 )
...
* fix #19149 Invalid codegen when returning var tuple from a template
* fix type
2022-11-06 11:49:34 +01:00
Bung
fdc8dd4128
Arc global ( #20768 )
...
* temp
* unsure
* fix condition
* port macro arc runable examples to one file
* trigger doc ci
* fix
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2022-11-06 11:47:35 +01:00
ringabout
93b085a57a
closes #12589 ; add testcase ( #20769 )
...
* fixes #12589 ; add testcase
* fixes i386
* i386
2022-11-06 11:46:51 +01:00
ringabout
afd4e22f76
Revert "fix arc global variable issues" ( #20764 )
...
* Revert "fix arc global variable issues (#20759 )"
This reverts commit a3d32a4176 .
* trigger documentation builds
2022-11-05 22:47:12 +08:00
Bung
10e7f18d01
remove compiler/strutils2.nim ( #20748 )
...
* use std strutils toLowerAscii char
* avoid additional call and assign
* remove compiler/strutils2.nim
* canonical
2022-11-05 12:22:45 +01:00
Bung
a3d32a4176
fix arc global variable issues ( #20759 )
...
* temp
* unsure
2022-11-05 12:22:16 +01:00
n5m
51bef9b4a8
fix posix.mq_receive compilation with cpp backend ( #20710 )
...
* fix posix.mq_receive compilation with cpp backend
* only enable runnableExample on posix
* linux, not posix
* simplify example
* add test
* mqueue.h does not exist on MacOS
* place test case in own block
* drop runnableExamples
2022-11-05 06:31:19 +01:00
konsumlamm
4491da4c4d
Support doc comments in new-styled concepts ( #20752 )
...
Support comments in new-styled concepts
2022-11-04 20:32:41 +08:00
Bung
ecc8f61fe4
Fix #18079 Illegal storage access compiling call with nested ref/deref ( #20738 )
...
* add test case
* refactoring transformAddrDeref and fix #18079
* fix jsgen
2022-11-04 09:54:45 +01:00
ringabout
12a20b9fb6
revert #20719 ; relieve std/assertions of the sysFatal dep ( #20743 )
...
* Revert "make `system/fatal` importable (#20718 )"
This reverts commit d735c447d3 .
* relieve `std/assertions` of the sysFatal dep
2022-11-04 09:53:19 +01:00
ringabout
090661d46c
add a testcase for laxeffects ( #20750 )
2022-11-04 12:43:32 +08:00
ringabout
0b1d1b7886
fixes #15688 ; handle strongSpace overflow issues ( #20724 )
...
* fixes #15688 ; handle `strongSpace` overflow issues
* stop at 1
* change the type of strongSpaceA to bool
2022-11-03 09:18:09 +01:00
ringabout
c4e5dab419
fixes #20740 ; fixes pre-existing field visibility issues and removes efSkipFieldVisibilityCheck ( #20741 )
...
fixes #20740 pre-existing field visibility and refactoring
2022-11-03 15:46:16 +08:00
ringabout
117a19d032
closes #13618 ; add testcase ( #20734 )
2022-11-02 19:25:51 +08:00
ringabout
87f7f50553
closes #14216 ; add testcase ( #20733 )
2022-11-02 15:29:46 +08:00
ringabout
841d9d5975
closes #16331 ; add testcase ( #20730 )
2022-11-02 12:01:36 +08:00
Bung
eec1543baf
fix semcase on tySequence and tyObject #20283 #19682 ( #20339 )
...
* fix semcase on tySequence and tyObject #20283 #19682
* use better arg name
* avoiding returns nil use errorNode instead, clean code
* use efNoDiagnostics flag
* remove tests/errmsgs/t19682.nim
* combine 2 test cases to one file
2022-11-01 10:19:37 +01:00
Bung
49e793e8c4
fix #20272 range of uint64 shows signed upper bound ( #20702 )
2022-11-01 05:58:32 +01:00
ringabout
39f925b95d
fixes #20715 ; range[a..b] inside object variant fails ( #20716 )
...
* fixes #20715 ; range[a..b] inside object variant fails
* step one fix
* better fix
* fixes private fields
* mistake
2022-10-31 18:42:45 +01:00
n5m
52166e3546
allow deferred close of nil stream ( #20706 )
...
* allow deferred close of nil stream
* improve example
2022-10-31 11:20:06 +01:00
ringabout
e1ddd2d524
put std/threads under the umbrella of nimPreviewSlimSystem ( #20711 )
...
* put `std/threads` under the umbrella of `nimPreviewSlimSystem`
* add changelog
* fixes tests
* fixes tests again
* fixes tests
2022-10-31 06:36:50 +01:00
Bung
a51ed90c5d
fix #20148 implicit compile time conversion int to ranged float cause… ( #20698 )
...
fix #20148 implicit compile time conversion int to ranged float causes compiler fatal error
2022-10-29 18:04:05 +02:00
Bung
534c97edc5
fix #16264 low(Time) OverflowDefect ( #20552 )
...
fix #16264 regression(0.18.0 => devel): import times; echo low(Time) gives OverflowDefect
2022-10-29 08:59:51 +02:00
metagn
cb3af8ad39
alternate fix + test for #12094 , refs #13804 ( #20686 )
2022-10-29 07:20:04 +02:00
ringabout
141abb7b75
fixes #20681 ; add efSkipFieldVisibilityCheck to skip check ( #20639 )
...
* don't sem const objectConstr defaults
* fixes
* add `efSkipFieldVisibilityCheck`; fixes nkBracket types
* fixes #20681
* fixes tests
* suggestion from @metagn
* fixes tests
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-10-28 16:19:40 -04:00
Andrey Makarov
779b1cc5be
Fix #20628 for Windows ( #20667 )
...
* Fix #20628 for Windows
* Move isRegular - !isSpecial and onlyRegular - skipSpecial
* Forgot to change it in 1 more place
2022-10-28 10:01:28 +02:00
ringabout
27896ed469
fixes type check of ranges for default fields ( #20660 )
2022-10-27 17:23:33 +02:00
Bung
aa6f9d490f
fix #6637 array index type depends generic ( #20673 )
2022-10-27 12:22:04 +02:00