Jake Leahy
91d51923b9
Fix tupleLen not skipping aliases ( #25392 )
...
This code was failing to compile with `Error: unhandled exception:
semmagic.nim(247, 5) operand.kind == tyTuple tyAlias [AssertionDefect]`
```nim
import std/typetraits
type
Bar[T] = T
Foo = Bar[tuple[a: int]]
echo Foo.tupleLen
```
Fix was just making `tupleLen` skip alias types also
2025-12-28 16:45:07 +01:00
..
2019-05-05 08:26:22 +02:00
2023-05-11 10:23:52 +02:00
2021-06-02 13:13:23 +02:00
2018-12-11 21:23:23 +01:00
2015-09-04 23:04:32 +02:00
2020-11-28 09:09:31 +01:00
2017-06-20 11:29:42 +02:00
2018-12-11 21:23:21 +01:00
2024-09-30 17:34:49 +02:00
2024-01-05 11:07:27 +01:00
2019-09-20 10:41:40 +02:00
2018-11-23 13:16:45 +01:00
2020-05-03 00:12:52 +02:00
2023-03-17 10:17:08 +01:00
2022-09-23 13:05:05 +02:00
2020-04-14 15:00:02 +02:00
2022-09-23 13:05:05 +02:00
2020-11-28 09:09:31 +01:00
2020-06-24 20:38:08 -07:00
2020-03-06 08:55:53 +01:00
2022-04-26 20:14:39 +02:00
2024-08-20 21:31:19 +02:00
2024-08-20 21:31:19 +02:00
2025-12-28 16:45:07 +01:00
2020-04-28 19:56:01 +02:00
2018-02-10 20:55:21 +01:00
2020-12-28 14:13:21 +01:00
2024-06-09 08:16:05 +02:00
2019-11-06 14:35:45 +01:00
2021-09-11 13:05:53 +02:00
2021-02-12 17:10:20 +01:00
2020-12-27 14:45:57 +01:00