Files
Nim/tests/stdlib
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-06-06 08:36:20 +02:00
2018-01-14 23:49:53 +01:00
2018-11-23 11:58:28 +01:00
2018-11-23 11:58:28 +01:00
2018-11-27 10:34:34 +01:00
2018-11-23 11:58:31 +01:00
2019-01-14 17:16:17 +01:00
2019-02-23 13:06:26 +00:00
2018-10-12 17:27:47 +02:00
2019-05-16 21:06:04 +02:00
2019-08-15 15:22:14 +02:00
2019-02-13 23:30:14 +01:00
2017-05-04 22:25:29 +02:00
2018-11-23 11:58:29 +01:00
2019-01-14 12:36:34 +01:00
2018-12-11 21:23:21 +01:00
2018-12-11 21:23:21 +01:00
2018-11-23 11:58:32 +01:00
2019-07-15 17:22:01 +02:00
2018-10-28 13:35:30 +01:00
2019-05-15 21:12:07 +02:00
2014-08-29 09:12:12 +02:00
2018-04-30 11:16:56 +02:00