Nim/tests/macros
zah e50441ab33
Fix typeSym.getImpl for ref types (#13752)
* Fix typeSym.getImpl for ref types

* Fix a codegen issue affecting the test suite of nim-beacon-chain

* Fix tests/stdlib/tjsonmacro

To understand the fix better it may help to take a look
at the history of the replaced code.

The nil check that is removed in this commit was introduced
in another fix that failed to identify the root cause of the
issue - namely that we allow an object type to exist for which
no ast is present:

https://github.com/nim-lang/Nim/pull/9601/files

The original intention of the code is more obvious here:

https://github.com/nim-lang/Nim/pull/9538/files
2020-03-26 09:26:19 +01:00
..
macro_bug.nim Remove immediate pragma (#11308) 2019-05-29 22:21:51 +02:00
t7454.nim Return an error symbol as macro output if needed (#8116) 2018-06-27 21:43:07 +02:00
t8997.nim fix #10591 regression (#10592) 2019-02-06 22:31:36 -06:00
tastrepr.nim fix #12740 (#12774) 2019-12-04 07:33:01 +00:00
tbindsym.nim cleanup tests; don't use non-working 'msg' spec field 2018-11-23 13:16:45 +01:00
tclosuremacro.nim fixes anon procs created by macros 2017-07-11 18:07:34 +02:00
tcollect.nim add tcollect test for the new for-loops as expressions feature 2018-09-11 19:14:31 +02:00
tcomplexecho.nim Allow void macro result (#11286) 2019-05-21 21:31:40 +02:00
tcprag.nim rename a file, so that megatest doesn't complain 2019-05-29 15:44:52 +02:00
tdumpast.nim fix several bugs with repr (#13386) 2020-02-11 21:33:06 +01:00
tdumpast2.nim Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
tdumpastgen.nim cleanup tests; don't use non-working 'msg' spec field 2018-11-23 13:16:45 +01:00
tdumptree.nim cleanup tests; don't use non-working 'msg' spec field 2018-11-23 13:16:45 +01:00
tescape_var_into_quotedo_as_const.nim fixes #9864 [backport] 2018-12-05 10:58:18 +01:00
texpectIdent1.nim add expectIdent to macros (#12778) 2020-03-11 08:27:31 +01:00
texpectIdent2.nim add expectIdent to macros (#12778) 2020-03-11 08:27:31 +01:00
tforloop_macro1.nim put the new for loop macros under an experimental switch named 'forLoopMacros' 2018-08-15 17:45:57 +02:00
tgetimpl.nim cleanup tests; don't use non-working 'msg' spec field 2018-11-23 13:16:45 +01:00
tgettype.nim remove unused imports from tests 2019-11-06 14:35:45 +01:00
tgettype2.nim make run the default action of a test in tester 2018-11-23 11:58:28 +01:00
tgettype3.nim fixes #5131 2016-12-20 22:42:25 +01:00
tgettypeinst.nim remove unused imports from tests 2019-11-06 14:35:45 +01:00
tincremental.nim Compiler plugin for implementing incremental computation in user space (#10819) 2019-04-11 23:09:11 +02:00
tinvalidtypesym.nim fix regression in align (#12680) 2019-11-19 09:58:47 +01:00
tisexported.nim Implement isExported for symbols in macros (#11963) 2019-08-18 11:51:28 +02:00
tlocktypednode1.nim Lock semchecked ast for macros (#11883) [bugfix] 2019-08-08 16:57:06 +02:00
tlocktypednode2.nim Lock semchecked ast for macros (#11883) [bugfix] 2019-08-08 16:57:06 +02:00
tlocktypednode3.nim Lock semchecked ast for macros (#11883) [bugfix] 2019-08-08 16:57:06 +02:00
tmacro1.nim backtick and export marker handling in eqIdent (#12574) 2019-11-07 14:40:44 +01:00
tmacro2.nim Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
tmacro3.nim Fix spellings (#12277) [backport] 2019-09-27 07:02:54 +02:00
tmacro4.nim remove unused imports from tests 2019-11-06 14:35:45 +01:00
tmacro5.nim Allow void macro result (#11286) 2019-05-21 21:31:40 +02:00
tmacro6.nim Allow void macro result (#11286) 2019-05-21 21:31:40 +02:00
tmacro7.nim Lock semchecked ast for macros (#11883) [bugfix] 2019-08-08 16:57:06 +02:00
tmacro8.nim close #8573 by adding a test 2019-05-30 11:13:29 +02:00
tmacroaspragma.nim Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
tmacrogenerics.nim fix for return in macro (#9666); fixes #5874 2019-05-20 12:18:53 +02:00
tmacrogensym.nim fix deprecations and other warnings (#13748) 2020-03-25 19:15:34 +01:00
tmacros1.nim remove unused imports from tests 2019-11-06 14:35:45 +01:00
tmacros_issues.nim fixes #11131 2019-05-13 17:25:57 +02:00
tmacros_various.nim fix macrocache implementation (#11404) 2019-06-05 14:56:45 +02:00
tmacrostmt.nim Fixes #11662: render ops priority (#11664) 2019-07-05 21:25:36 +02:00
tmacrotypes.nim Fix typeSym.getImpl for ref types (#13752) 2020-03-26 09:26:19 +01:00
tmemit.nim activated more tests, allow input in test spec 2018-11-23 11:58:28 +01:00
tmsginfo.nim compiler: show name of instantiating context in error traces (#6763) (#9207) 2018-10-11 09:34:56 +02:00
tnewlit.nim macros.newLit now works for ref object types (#12307) 2019-09-30 22:24:57 +02:00
tnewproc.nim add progmas to params of macros.newProc (#11025) 2019-04-27 12:22:02 +01:00
tnodecompare.nim Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
tquotedo.nim fix #10339 by returning type attached to nkEmpty (#10370) 2019-01-23 11:17:32 +01:00
tquotewords.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
trecmacro.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
treturnsempty.nim Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
tsame_name_497.nim Remove immediate pragma (#11308) 2019-05-29 22:21:51 +02:00
tsametype.nim megatest: make it green on Linux 2018-12-11 21:23:25 +01:00
tslice.nim Add proc [](n: NimNode, s: HSlice[T, U]): seq[NimNode] to macros (#7735) 2018-11-10 14:10:50 +01:00
tstaticparamsmacro.nim cleanup tests; don't use non-working 'msg' spec field 2018-11-23 13:16:45 +01:00
tstringinterp.nim Testament: refactoring; makes the test joiner green 2018-12-11 21:23:23 +01:00
tstructuredlogging.nim A motivating example for the new bindSym behavior. 2018-05-07 09:37:49 +02:00
ttemplatesymbols.nim Fix spellings (#12277) [backport] 2019-09-27 07:02:54 +02:00
ttryparseexpr.nim revert parser stmtListExpr (#11007) 2019-04-17 11:55:41 +02:00
tvarargsuntyped.nim make megatest green 2019-01-13 17:19:36 +01:00
tvtable.nim make tests green again 2017-10-01 07:46:13 +02:00
twrapiterator.nim fixes #7093 2018-01-18 11:40:18 +01:00
typesafeprintf.nim make typesafeprintf test green 2018-07-17 20:33:42 +02:00
typesapi2.nim Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00