ringabout
eaac22b9aa
close #11705 ; add a testcase ( #21128 )
...
(cherry picked from commit 53eed2be45 )
2023-04-26 11:00:04 +02:00
Bung
0c9c6d2a68
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
(cherry picked from commit bae0fb720a )
2023-04-26 09:31:32 +02:00
metagn
592321c7f5
alternate fix + test for #12094 , refs #13804 ( #20686 )
...
(cherry picked from commit cb3af8ad39 )
2023-04-25 16:27:30 +02:00
Bung
425f828178
fix #19700 Crash when passing a template to a generic functio… ( #20567 )
...
fix nim-lang#19700 Crash when passing a template to a generic function expecting a procedure
(cherry picked from commit 0510a2be0d )
2023-04-25 15:34:47 +02:00
metagn
e494f1b21e
fix #20002 ( #20004 )
...
While this fix seems innocent,
this unlocks the hidden behavior of
method calls not being able to call
gensym'ed routines inside templates.
(cherry picked from commit f35c9cf73d )
2023-04-24 22:02:43 +02:00
ringabout
60350eca1a
fixes #1027 ; disallow templates to use ambiguous identifiers ( #21405 )
...
* Add `nkFastAsgn` into `semExpr` (#20939 )
* Add nkFastAsgn into case statement
* Add test case
* fixes #1027 ; disallow templates to use ambiguous identifiers (#20631 )
* 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 >
---------
Co-authored-by: Jake Leahy <jake@leahy.dev >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2023-02-20 23:50:53 +08:00
SirOlaf
322d2f8096
[backport] Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent ( #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 >
(cherry picked from commit 2f441ac675 )
2022-10-21 09:19:14 +02:00
metagn
e32de02f0a
fix #13515 [backport] ( #20315 )
...
(cherry picked from commit 58e6d439d8 )
2022-09-19 15:08:21 +02:00
flywind
1368316b7f
style usages part one (openarray => openArray) ( #19321 )
...
* style usages (openArray)
* revert doc changes
(cherry picked from commit 9df195ef58 )
2022-05-25 16:33:37 +02:00
Timothee Cour
24445d31b3
improve several tests in testament ( #18635 )
...
* 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
2021-08-08 19:28:49 +02:00
Timothee Cour
52e276c82d
exportC => exportc ( #18625 )
2021-07-31 23:54:08 -07:00
Saem Ghani
b7ad29e692
fix #18113 ( #18124 )
2021-05-31 13:27:44 +02:00
flywind
6f53579a8c
close #9534 add testcase ( #17607 )
2021-04-01 08:47:59 +02:00
Saem Ghani
e5873b3a93
semTemplateDef and t17433 clean-ups ( #17448 )
...
- use `doAssert` in t17433
- use setGenericParamsMisc in semTemplateDef akin to semProcAux
- pragma handling in semTemplateDef inline with semProcAux
2021-03-22 12:46:34 +01:00
Saem Ghani
23fd098428
Fixes #17433 ; gensym callDef return in templ body ( #17445 )
2021-03-22 00:33:37 +01:00
flywind
0e3ea16554
use lowercase --define switches ( #17283 )
2021-03-07 12:08:41 +01:00
konsumlamm
eef2948ec2
Fix #12595 ( #16874 )
2021-01-31 01:00:18 +01:00
Clyybber
3df652b90b
Add testcase for #5993 ( #16789 )
2021-01-22 02:11:21 +01:00
flywind
271f68259b
remove some noises in tests ( #16448 )
2020-12-27 14:45:57 +01:00
Timothee Cour
b809562c7c
make megatest consistent with unjoined tests wrt newlines, honor newlines in output spec ( #16151 )
...
* fix megatest newlines
* still allow missing trailing newline for now but in a more strict way than before
2020-11-28 09:09:31 +01:00
flywind
98cec6b692
closes #3670 [add testcase for #3670 ] ( #15808 )
...
* add testcase
* Update tests/template/twhenintemplates.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-11-01 19:53:00 +01:00
flywind
1725db9295
closes #7374 ( #15781 )
...
* add testcase for #7374
* minor
* fix test
2020-10-30 09:59:56 +01:00
Clyybber
fb58066b61
Fix #5691 ( #15158 )
...
* Fix #5691
* Cleanup and thoughts
* Use scope approach
* Seperate defined/declared/declaredInScope magics
* Fix declaredInScope
* Update spec accordingly
2020-08-27 15:50:59 +02:00
Clyybber
2cea52ee7e
Allow pragmas on parameters ( #15178 )
2020-08-11 22:28:49 +02:00
Clyybber
2629d619a1
Fix forward declaration issues in template/macro context ( #15091 )
...
* 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
2020-07-29 16:17:20 +02:00
Clyybber
425972c4e8
Add testcase for some old fixed issues ( #14960 )
...
* Add testcase for #2703
* Add testcase for #2586
* Small fix
2020-07-10 19:21:50 +02:00
Clyybber
b21782a667
Add testcase for #4722 ( #14954 )
2020-07-10 17:02:49 +02:00
Timothee Cour
a6cbe58e8c
typetraits.$: $((int, float), int) is now "((int, float), int)" instead of "(tuple of (int, float), int)" ( #14812 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-07-02 16:19:43 +02:00
Miran
e7f280bd26
Remove deprecated stuff from stdlib ( #14699 )
...
* update to the latest Jester
* remove deprecated procs from some stdlib modules
* 'criterion' is not maintained anymore and relies on obsolete stuff
2020-06-17 15:25:02 +02:00
jcosborn
5a22d6b57b
fix codegen bug due to changing existing symbol declaration in template ( #14666 )
2020-06-15 08:40:12 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
Andreas Rumpf
059a16b34d
fixes #12193 ( #12199 )
2019-09-16 15:38:07 +02:00
Andreas Rumpf
488f3ed085
fixes yet another gensym regression ( #12145 )
2019-09-06 00:45:00 +02:00
Andreas Rumpf
58bcf6cd46
fixes #12121 ( #12126 )
2019-09-05 08:21:01 +02:00
Andreas Rumpf
7ef85db9a9
fixes #12020 ( #12106 )
2019-09-02 15:47:56 +02:00
Andreas Rumpf
5f7a6aff06
fixes #11941 ( #12079 )
2019-08-29 00:35:05 +02:00
Andreas Rumpf
b07694cd90
new gensym handling ( #11985 )
...
* 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
2019-08-23 16:15:02 +02:00
Andreas Rumpf
9aad99bdfd
closes #7117
2019-08-22 19:08:35 +02:00
Andreas Rumpf
465815e894
improved the error message for #11494 ; closes #11494
2019-07-06 23:59:23 +02:00
Arne Döring
5b27b263fd
Remove immediate pragma ( #11308 )
...
* remove immediate from tests
* remove immediate from the compiler
2019-05-29 22:21:51 +02:00
narimiran
4f989b9162
close #5235 by adding a test
2019-05-29 11:52:54 +02:00
Arne Döring
f94ec363ab
Allow void macro result ( #11286 )
...
* allow void macro result
* add test for void macro result type
2019-05-21 21:31:40 +02:00
Andreas Rumpf
2fba65b29f
fixes #7937 ( #11244 )
2019-05-14 07:44:39 +02:00
Aditya Siram
a6d4421241
Fixes #9365 : let with exportC pragma in template. ( #11235 )
...
* Fixes #9365 : let with exportC pragma in template.
* Fix according to comments.
2019-05-14 01:34:32 +02:00
Araq
2475d92c36
fixes #10192
2019-05-06 21:42:49 +02:00
Miran
e7878c0d08
add tests for recently closed issues ( #10722 )
2019-02-23 10:41:35 +01:00
Araq
3b783f7e13
Testament: refactoring; makes the test joiner green
2018-12-11 21:23:23 +01:00
Arne Döring
a5ecbf823f
lots of small changes
2018-12-11 21:23:22 +01:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
Araq
e874705971
fixes nested gensym'ed parameters; fixes #9476
2018-12-08 13:30:06 +01:00