summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* post expr blocks colon fix + correct grammar (#21983)metagn2023-06-061-0/+8
| | | | | | | | | | | | | | | * post expr blocks colon fix + correct grammar fixes #21982 * fix dochelpers * this is remarkably common * use head for unchained * fix atlas * final grammar fix
* properly disallow unresolved generic proc values (#22005)metagn2023-06-051-8/+2
| | | | | | | * properly disallow unresolved generic proc values * mirrors semoperand * shallow efTypeAllowed, add back special case
* add test case for #7839 (#22006)Bung2023-06-051-0/+9
|
* infer error for `=dup` if there is a custom `=copy` error hook (#22004)ringabout2023-06-051-2/+2
|
* shallow fix for #21972, #18552 by moving std::exception_ptr to the parent ↵heterodoxic2023-06-041-0/+33
| | | | | sco… (#21988) shallow fix for #21972 by moving std::exception_ptr to the parent scope, minor cleanup
* fixes #21987; don't create type bound ops for anything in a function with a ↵ringabout2023-06-041-0/+48
| | | | | | | `nodestroy` pragma (#21992) * fixes #21987; don't create type bound ops for anything in a function with a `nodestroy` pragma * add a comment
* lift the `=dup` hook (#21903)ringabout2023-06-028-33/+35
| | | | | | * fixes tests again * remove helper functions * fixes closures, owned refs * final cleanup
* partially fixes #20787 by having a char dummy member prepended to objs only ↵heterodoxic2023-06-011-0/+4
| | | | | containing an UncheckedArray (i.e. C FAM) (#21979) partial fix for #20787
* fixes #21974; fixes sameConstant fieldDefect (#21981)ringabout2023-06-011-0/+30
| | | | | * fixes #21974; fixes sameConstant fieldDefect * add a test case
* Implements: [C++] constructor pragma improvement (fix #21921) (#21916)Juan M Gómez2023-05-301-2/+33
| | | | | | | | | | | | | | | * implements: [C++] constructor pragma improvement (fix #21921) t * fix test so it doesnt use echo in globals * Update compiler/ccgtypes.nim * Update lib/std/private/dragonbox.nim --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* make `proc` not implicitly convert to `pointer` with a preview define (#21953)metagn2023-05-304-9/+10
| | | | | | | | | * test `proc` not converting to `pointer` * ignore define for now to test * remove cstring * fixes, changelog
* alternative to #21914; split, rsplit now forbid an empty separator (#21961)ringabout2023-05-301-0/+14
|
* Add anti-regression for #21958 (#21960)Mamy Ratsimbazafy2023-05-301-0/+11
| | | Add anti-regression test to close #21958
* fixes fieldDefect loses enum type info in ORC; consistent with VM and refc ↵ringabout2023-05-291-2/+1
| | | | | (#21954) fixes fieldDefect loses enum type info in ORC
* support generic void return type for templates (#21934)metagn2023-05-271-0/+6
| | | fixes #21920
* fixes #15428 by updating deep open array copy codegen (#21935)heterodoxic2023-05-271-0/+22
| | | | | * fix #15428 * add test
* fix #10964 by honoring pointer deref syntax if a reified openarray is used ↵heterodoxic2023-05-271-0/+6
| | | | | | | to get an array's length (#21925) * fix #10964 * add test
* fix & add test for basic hot code reloading case (#21915)metagn2023-05-261-0/+7
| | | fixes #21885
* fixes #21887; Type conversion on overloaded enum field does not always call ↵ringabout2023-05-261-0/+8
| | | | | | | | | | | (#21908) * fixes #21887; Type conversion on overloaded enum field does not always call * remove comments * add a test case * restrict it to enums
* Fix const in async regression (#21898)Jake Leahy2023-05-251-0/+13
| | | | | | | | | * Add test case for a const being used inside an async proc * Use `typeof` to get the type of the block instead of overloaded templates This removes the problem with the symbol having different types I am unsure why I didn't use this in the first place. IIRC I had problems with `typeof` when I first tried to use it in the original implementation
* when T is both a type symbol and a routine symbol in scope of a generic proc ↵metagn2023-05-242-0/+9
| | | | | do not account for the type symbol when doing `a.T()` (#21899) fix #21883
* actually fixes #21889 "constructor pragma doing nothing in globals" (#21897)Juan M Gómez2023-05-241-0/+24
| | | actually fixes #21889
* fix #21896 asign parameter to global variable generates invalid code (#21900)Bung2023-05-241-0/+9
|
* fixes #21863; Incorrect enum field access can cause internal error (#21886)ringabout2023-05-241-0/+28
| | | fixes 21863; Incorrect enum field access can cause internal error
* fix #21251 Compiler SIGSEGV when using SharedTable (#21876)Bung2023-05-231-0/+6
| | | fix #21251
* Weekday parse/format (replacement) (#21857)Carlo Capocasa2023-05-212-49/+24
| | | | | * parsing capability for iso week year * remove outdated test
* Fixed generic parameters failing to be used in inheritance (#21866)Jason Beetham2023-05-211-0/+39
|
* implements allow byref to work in params #21873 (#21875)Juan M Gómez2023-05-211-5/+14
|
* fix #14254 (#21837)metagn2023-05-202-0/+6
| | | | | | | * fix #14254 * use temporary PR branch for neo * fix url
* Cpp Vfunctions draft (#21790)Juan M Gómez2023-05-171-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * introduces virtual pragma, modifies proc def, prevents proc decl * marks virtual procs as infix * forward declare vfuncs inside the typedef * adds naked callConv to virtual * virtual proc error if not defined in the same top level scope as the type * first param is now this. extracts genvirtualheaderproc * WIP syntax * supports obj. Removes the need for the prefix * parameter count starts as this. Cleanup * clean up * sem tests * adds integration tests * uses constraint to store the virtual content * introduces genVirtualProcParams --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* tasks that support return values (#21859)Andreas Rumpf2023-05-171-0/+18
| | | tasks.nim: Code cleanups and support expressions that produce a value
* fixes #21847; let `parseFloat` behave like `strtod` (#21854)ringabout2023-05-171-2/+8
|
* fixes #21708; skip colons for tuples in VM (#21850)ringabout2023-05-171-0/+10
| | | | | | | * fixes #21708; skip colon for tuples in VM * skip nimnodes * fixes types
* close #19990; adds a test case (#21853)ringabout2023-05-151-0/+14
|
* isolation spec update; WIP (#21843)Andreas Rumpf2023-05-141-0/+67
| | | | | | | | | | | * isolation spec update; WIP * wip * docs update, WIP * progress * Update doc/manual.md
* closes #7590; add a test case (#21846)ringabout2023-05-141-0/+20
|
* fixes #21840; nested local template lookup regression (#21841)ringabout2023-05-121-0/+74
| | | | | | | * fixes #21840; nested local template lookup regression * use original types * fixes js vm tests
* make deprecated statement a no-op (#21836)metagn2023-05-121-1/+1
|
* Add `minmax` to comparisons (#21820)Matt Wilson2023-05-121-0/+8
| | | | | | | | | | | | | | * Add `minmax` to sequtils This adds a `minmax` proc to complement `min` and `max`; it computes both results in a single pass for efficiency. * Update lib/pure/collections/sequtils.nim * Add minmax note to changelog. --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* cursor fields cannot form reference cycles (#21832)ringabout2023-05-111-4/+16
| | | | | | | * cursor fields cannot form a reference cycle * fixes typo * fixes position
* adds documentation for `=wasMoved` and `=dup` hooks and small fixes (#21827)ringabout2023-05-111-1/+1
| | | | | | | | | | | * adds documentation for `=wasMoved` and `=dup` hooks and small fixes * Update doc/destructors.md * Update doc/destructors.md --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* bring #21802 back; fixes #21753 [backport] (#21815)ringabout2023-05-111-0/+123
| | | | | | | | | | | | | * bring #21802 back; fixes #21753 [backport] * adds tests and multiple fixes * add test cases * refactor and remove startId * fixes custom hooks and adds tests * handle tyUncheckedArray better
* clean up SOME pending/xxx/issue link comments (#21826)metagn2023-05-1121-125/+82
| | | | | * clean up SOME pending/xxx/issue link comments * great
* make ORC threadlocal, take two (#21818)Andreas Rumpf2023-05-102-2/+2
| | | | | * ORC: make rootsThreshold thread local [backport] * fixes the regression
* fix #9423 followup #17594: distinct generics now work in VM (#21816)ringabout2023-05-102-3/+26
| | | | | | | | | * fix #9423 distinct generics now work in vm * fixes cpp tests --------- Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* re-enable badssl test (#21775)metagn2023-05-091-4/+4
| | | test reenable badssl
* fixes #21801; object field initialization with overloaded functions (#21805)ringabout2023-05-081-0/+23
| | | | | * fixes #21801; object field initialization with overloaded functions * use the correct type
* revert #21799 and #21802 which don't pass the tests (#21804)ringabout2023-05-072-2/+2
| | | | | | | | | * Revert "ORC: make rootsThreshold thread local [backport] (#21799)" This reverts commit b74d49c037734079765770426d0f5c79dee6cf87. * Revert "fixes #21752 [backport] (#21802)" This reverts commit d0c62fa169f3970653ce0d5bbd16e123efb24251.
* fixes #21280; Enum with int64.high() value crashes compiler (#21285)ringabout2023-05-061-0/+8
| | | | | | | | | | | | | | | * fixes #21280; Enum with int64.high() value crashes compiler * Update tests/enum/tenum.nim * Update tests/enum/tenum.nim * fixes tests * Update tests/enum/tenum.nim --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* implement `=dup` hook eliminating `wasMoved` and `=copy` pairs (#21586)ringabout2023-05-062-2/+71
| | | | | | | | | | | | | | | | | | | * import `=dup` hook eliminating `wasMoved` and `=copy` pairs * add dup * add a test for dup * fixes documentation * fixes signature * resolve comments * fixes tests * fixes tests * clean up