Files
Nim/tests/refc/m24844.nim
ringabout 2fc23370ec fixes #24844; Invalid C codegen refc with generic types containing gc memory (#25160)
fixes #24844

it may not be used in other places except in `genTraverseProc`,
we have to generate a `typedesc` for this case, not a weak `typedec`

(cherry picked from commit a77d1cc6c1)
2025-09-17 09:03:43 +02:00

8 lines
154 B
Nim

type
S*[T] = ref object of RootObj
k: string
A*[T] = ref object of S[T]
proc p*[T](): S[T] = S[T]()
proc u*() = discard A[int]()
discard A[int]()