Files
Nim/tests/typerel
ringabout dc8d538683 fixes #25262; proc v[T: typedesc]() = discard / v[0]() compiles even though 0 isn't a typedesc (#25558)
fixes #25262

```nim
if constraint != nil and constraint.kind == tyTypeDesc:
  n[i].typ = e.typ
else:
  n[i].typ = e.typ.skipTypes({tyTypeDesc})
```
at least when `constraint` is a typedesc, it should not skip
`tyTypeDesc`

```nim
if arg.kind != tyTypeDesc:
  arg = makeTypeDesc(m.c, arg)
```
Wrappers literals into typedesc, which can cause problems. Though, it
doesn't seem to be necessary

(cherry picked from commit bd709f9b4c)
2026-03-02 11:01:01 +01:00
..
2018-12-11 21:23:22 +01:00
2022-09-23 13:05:05 +02:00
2022-09-23 13:05:05 +02:00
2022-09-23 13:05:05 +02:00
2026-02-10 17:20:32 +01:00
2016-07-19 19:27:38 +02:00
2014-12-23 17:54:22 +01:00
2016-12-06 15:37:09 +01:00
2018-11-23 11:58:28 +01:00
2017-07-25 09:28:23 +02:00
2023-04-17 20:56:11 +02:00