summary refs log tree commit diff stats
path: root/tests/template
Commit message (Collapse)AuthorAgeFilesLines
* fix #19149 Invalid codegen when returning var tuple from a template (#20762)Bung2022-11-061-0/+19
| | | | | * fix #19149 Invalid codegen when returning var tuple from a template * fix type
* alternate fix + test for #12094, refs #13804 (#20686)metagn2022-10-291-0/+11
|
* fixes #1027; disallow templates to use ambiguous identifiers (#20631)ringabout2022-10-243-0/+24
| | | | | | | | | | | | | | | | | | | | * test qualifiedLookUp in templates * check later * add testcase * add 4errormsg * Update tests/template/m1027a.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update tests/template/m1027b.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* [backport] Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent ↵SirOlaf2022-10-181-0/+15
| | | | | | | | | | | | (#20578) * Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent * Add test * Update compiler/lookups.nim Co-authored-by: SirOlaf <a> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #19700 Crash when passing a template to a generic functio… (#20567)Bung2022-10-151-0/+10
| | | fix nim-lang#19700 Crash when passing a template to a generic function expecting a procedure
* pragma for sfCallsite instead of name check + better semantics, test (#20464)metagn2022-10-032-0/+37
| | | | | | | | | | | * pragma for sfCallsite instead of name check at every template definition Not documented because it seems to be for internal use? Should also make it possible to make comparisons and setops imports, but this doesn't have to be done. I can reuse a name like `cursor` for the pragma as well, added a new name just to be safe. * make sfCallsite recursive, add tests
* defaults to ORC (#19972)ringabout2022-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * defaults to Orc * bootstrap using refc * use gc * init orc defines * unregister orc * fix gc * fix commands * add prepareMutation for orc * enable deepcopy for orc * prepareMutation * more fixes * some cases * bug #20081 * partial fixes * partial fixes * fixes command line * more fixes * build Nim with refc * use gc * more fixes * rstore * orc doesn't support threadpool * more shallowCopy * more fixes * fixes unsafeNew * workarounds * small * more fixes * fixes some megatest * tcodegenbugs1 refc * fxies megatest * build nimble with refc * workaround tensordsl tests * replace shallowCopy with move * fixes action * workaround * add todo * fixes important packages * unpublic unregisterArcOrc * fixes cpp * enable windows Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* fix #13515 [backport] (#20315)metagn2022-09-111-0/+16
| | | | | | | | | | | * fix #13515 * only compile test * no idea why this PR is unlocking this * don't rope in symchoices * even more restrictive
* new .redefine pragma for templates, warn on redefinition without it (#20211)metagn2022-08-233-3/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test CI for template redefinitions * adapt asyncmacro * fix quote * fix again * try something else * revert * fix ioselectors_select, disable packages CI * adapt more tests & simplify * more * more * more * rename to redefine, warn on implicit redefinition * basic documentation [skip ci] * Update compiler/lineinfos.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* fix #20002 (#20004)metagn2022-07-151-0/+8
| | | | | | While this fix seems innocent, this unlocks the hidden behavior of method calls not being able to call gensym'ed routines inside templates.
* fix term rewriting with sideeffect (#19410)flywind2022-01-191-0/+19
| | | | | | | | | * fix term rewriting with sideeffect fix #6217 * add tests * Update tests/template/template_various.nim
* style usages part one (openarray => openArray) (#19321)flywind2022-01-043-4/+4
| | | | | * style usages (openArray) * revert doc changes
* improve several tests in testament (#18635)Timothee Cour2021-08-082-3/+5
| | | | | | | | | | | * silence error output from template_various.nim * any => auto in tests * avoid showing failed for parseSpec since this is expected behavior in 2 cases: tincludefile.nim, tnav1.nim * enforce InheritFromException * fixup
* exportC => exportc (#18625)Timothee Cour2021-07-311-1/+1
|
* fix #18113 (#18124)Saem Ghani2021-05-311-0/+14
|
* close #9534 add testcase (#17607)flywind2021-04-011-0/+21
|
* semTemplateDef and t17433 clean-ups (#17448)Saem Ghani2021-03-221-3/+3
| | | | | - use `doAssert` in t17433 - use setGenericParamsMisc in semTemplateDef akin to semProcAux - pragma handling in semTemplateDef inline with semProcAux
* Fixes #17433; gensym callDef return in templ body (#17445)Saem Ghani2021-03-221-0/+16
|
* use lowercase --define switches (#17283)flywind2021-03-071-1/+1
|
* Fix #12595 (#16874)konsumlamm2021-01-311-2/+8
|
* Add testcase for #5993 (#16789)Clyybber2021-01-221-0/+16
|
* remove some noises in tests (#16448)flywind2020-12-271-3/+3
|
* make megatest consistent with unjoined tests wrt newlines, honor newlines in ↵Timothee Cour2020-11-281-2/+0
| | | | | | | output spec (#16151) * fix megatest newlines * still allow missing trailing newline for now but in a more strict way than before
* closes #3670 [add testcase for #3670] (#15808)flywind2020-11-011-0/+11
| | | | | | | * add testcase * Update tests/template/twhenintemplates.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* closes #7374 (#15781)flywind2020-10-301-0/+29
| | | | | | | * add testcase for #7374 * minor * fix test
* Fix #5691 (#15158)Clyybber2020-08-272-0/+68
| | | | | | | | * Fix #5691 * Cleanup and thoughts * Use scope approach * Seperate defined/declared/declaredInScope magics * Fix declaredInScope * Update spec accordingly
* Allow pragmas on parameters (#15178)Clyybber2020-08-111-0/+15
|
* Fix forward declaration issues in template/macro context (#15091)Clyybber2020-07-291-0/+126
| | | | | | | | | | | | | | | | | | | | | | | * Fix forward declaration issues in template/macro context * Correct forward declaration resolving for overloads * Remove old dead code * WIP consistent gensym ids * Minimize diff * Remove obsoleted hack * Add templInstCounter to give unique IDs to template instantiations * Remove obsoleted code * Eh, init in myOpen, not myProcess... * Remove optNimV019 * Add testcase for #13484
* Add testcase for some old fixed issues (#14960)Clyybber2020-07-101-0/+8
| | | | | | | * Add testcase for #2703 * Add testcase for #2586 * Small fix
* Add testcase for #4722 (#14954)Clyybber2020-07-101-0/+21
|
* typetraits.$: $((int, float), int)` is now `"((int, float), int)"` instead ↵Timothee Cour2020-07-021-1/+1
| | | | | of `"(tuple of (int, float), int)" (#14812) Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-172-2/+2
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* fix codegen bug due to changing existing symbol declaration in template (#14666)jcosborn2020-06-151-0/+106
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
|
* fixes #12193 (#12199)Andreas Rumpf2019-09-161-0/+18
|
* fixes yet another gensym regression (#12145)Andreas Rumpf2019-09-062-0/+24
|
* fixes #12121 (#12126)Andreas Rumpf2019-09-051-0/+31
|
* fixes #12020 (#12106)Andreas Rumpf2019-09-021-0/+19
|
* fixes #11941 (#12079)Andreas Rumpf2019-08-291-0/+15
|
* new gensym handling (#11985)Andreas Rumpf2019-08-233-0/+72
| | | | | | | | | | | * new .gensym implementation * make astspec test green again * introduce a --useVersion switch to group compatibility switches * fixes #10180 * fixes #11494 * fixes #11483 * object constructor fields and named parameters are also not gensym'ed * disabled broken package
* closes #7117Andreas Rumpf2019-08-221-2/+16
|
* improved the error message for #11494; closes #11494Andreas Rumpf2019-07-061-0/+21
|
* Remove immediate pragma (#11308)Arne Döring2019-05-295-27/+16
| | | | | * remove immediate from tests * remove immediate from the compiler
* close #5235 by adding a testnarimiran2019-05-291-1/+14
|
* Allow void macro result (#11286)Arne Döring2019-05-211-7/+5
| | | | | * allow void macro result * add test for void macro result type
* fixes #7937 (#11244)Andreas Rumpf2019-05-141-0/+24
|
* Fixes #9365 : let with exportC pragma in template. (#11235)Aditya Siram2019-05-141-0/+9
| | | | | | * Fixes #9365 : let with exportC pragma in template. * Fix according to comments.
* fixes #10192Araq2019-05-061-0/+20
|
* add tests for recently closed issues (#10722)Miran2019-02-231-0/+24
|
* Testament: refactoring; makes the test joiner greenAraq2018-12-111-1/+1
|