Files
Nim/lib
Vindaar eff0837ff4 fixes #12015 by also checking kind of typeNode (#12016)
* fixes #12015 by also checking kind of `typeNode`

If a tuple field is aliased it'll appear the same as a ref type in a
call to `getType` if only for the kind of the resulting `NimNode` is
checked (that is a `nnkBracketExpr`)

* fix test case due to #12017 and add more realistic test case

Adds an additional test case, which includes generics and is closer to
the real failure I encountered

* remove previous fix and fix differently after all

The previous fix was incomplete, because it failed for generics.

Note that the `of "tuple"` is not actually needed, the
`nnkBracketExpr` branch in the `else` branch would catch it too, but I
decided to introduce it for clarity. However, the latter is actually
needed, because it seems for aliases of `seq` we end up in it.

* update comment about global `%` proc in json test
2019-08-27 22:23:47 +02:00
..
2017-02-20 17:24:19 +02:00
2019-08-24 06:25:47 +02:00
2019-07-14 16:08:15 +02:00
2019-07-22 11:41:20 +02:00
2019-07-15 13:16:02 +02:00
2019-07-12 10:15:06 +02:00
2019-08-27 14:27:44 +02:00
2019-07-10 23:55:56 +02:00
2013-03-16 23:53:07 +01:00
2018-11-23 11:58:29 +01:00
2014-08-28 09:59:26 +02:00
2019-08-24 06:25:47 +02:00