Buldram
06d00dfcf6
fixes #19171 ; have openArray converted from ptr UncheckedArray be mutable ( #23882 )
...
Makes `toOpenArray(x: ptr UncheckedArray)` always return a `var
openArray` regardless of if `x` is mutable.
(cherry picked from commit 925dc5c131 )
2024-09-13 11:09:35 +02:00
ringabout
a6e729ed5d
fixes #23321 ; Error: internal error: openArrayLoc: ref array[0..0, int] ( #23548 )
...
fixes #23321
In the function `mapType`, ptrs (tyPtr, tyVar, tyLent, tyRef)
are mapped into ctPtrToArray, the dereference of which is skipped
in the `genref`. We need to skip these ptrs in the function
`genOpenArraySlice`.
(cherry picked from commit d09c3c0f58 )
2024-05-22 09:39:02 +02:00
ringabout
fa1606c6d6
enable static tests for topenarray ( #20620 )
2022-10-23 00:36:11 +08:00
flywind
9df195ef58
style usages part one (openarray => openArray) ( #19321 )
...
* style usages (openArray)
* revert doc changes
2022-01-04 13:29:50 +01:00
flywind
83fa0fc843
fix #12521(type alias for openArray) ( #17593 )
...
* fix nim js cmp fails at CT
* fix #12521
* address comments
2021-04-19 11:21:35 +02:00
Timothee Cour
21e60b9a97
followup #17001 : improve coverage for tests/openarray/topenarray.nim ( #17006 )
...
* followup #17001 : improve coverage for tests/openarray/topenarray.nim
2021-02-13 09:33:42 +01:00
flywind
9bd4f503f4
[JS] Ref #15952 make toOpenArray works better ( #17001 )
...
* ref 15952 toOpenArray works in JS
* fix
2021-02-10 18:49:44 +01:00
Miran
1551fff853
clean up deprecated stuff and unused imports in tests ( #13059 )
2020-01-07 09:49:08 +01:00
Timothee Cour
9ae0dd611f
typeToString can now show (recursively) resolved type aliases; fixes #8569 #8083 #8570 ( #11678 )
...
* nested typeToString
* typeToString: preferResolved
* add test
* fix test
* preferMixed
* fix tests
2019-08-31 08:26:45 +02:00
Andreas Rumpf
2a3b056314
fixes #12042 ( #12083 )
...
* fixes #12042
* make tests green again
2019-08-29 19:09:54 +02:00
Jasper Jenkins
a6ba3116b2
Fixes for ptr array deref codegen ( #11191 )
...
* fixes for ptr array derefence codegen
* fix comments, make diff nicer
2019-05-07 08:14:38 +02:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
LemonBoy
3588240226
Always check the deduced type validity for result
...
Fixes #8259
2018-09-17 15:33:44 +02:00
genotrance
7af659cf59
Test case for #6163 ( #8960 )
...
* Test case for #6163
2018-09-14 17:09:16 +02:00
andri lim
aebad711ea
fixed #2240 and #3586
2016-01-05 07:52:56 +07:00
Araq
20b5f31c03
new tester; all tests categorized
2014-01-13 02:10:03 +01:00