Files
Nim/lib/pure
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
..
2019-08-16 13:29:58 +02:00
2019-08-07 22:40:58 +02:00
2019-07-15 10:56:55 +02:00
2019-07-11 11:09:10 +02:00
2019-07-27 19:06:56 +01:00
2019-07-05 01:42:17 +02:00
2019-08-23 07:42:33 +02:00
2018-04-30 02:52:58 +02:00
2019-07-19 17:25:04 +02:00
2015-10-01 12:05:45 -07:00
2018-04-15 23:38:43 +02:00
2019-08-17 21:19:57 +02:00
2019-05-22 07:41:16 +02:00
2018-04-06 11:59:49 +02:00
2019-08-21 20:01:17 +02:00
2018-10-19 11:45:59 +02:00
2019-08-15 15:22:14 +02:00
2016-07-21 08:53:10 +01:00
2019-07-10 23:55:56 +02:00
2019-05-16 21:06:04 +02:00
2019-07-10 23:55:56 +02:00
2016-07-21 08:52:39 +01:00
2019-07-15 17:22:01 +02:00
2019-08-08 13:17:53 +02:00
2017-01-25 20:02:19 +01:00