mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-15 08:03:46 +00:00
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