fixes #22861; Error: internal error: invalid kind for lastOrd(tyGenericParam)

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
ringabout
2026-04-28 20:53:13 +08:00
parent 92d0c097e5
commit 269b4985af
2 changed files with 12 additions and 2 deletions

View File

@@ -252,3 +252,9 @@ block: # issue #9381
var x: GenericObj[int]
static: doAssert evalCount == 1
block: # bug #22861
proc fromHex[N](A: type array[N, int]) = discard
proc fromHex (T: typedesc[array[1, int]]) = discard
fromHex(array[1, int])