Files
Nim/doc
elijahr b819472e74 Fix sizeof(T) in typedesc templates called from generic type when clauses (#25374)
The `hasValuelessStatics` function in `semtypinst.nim` only checked for
`tyStatic`, missing `tyTypeDesc(tyGenericParam)`. This caused
`sizeof(T)` inside a typedesc template called from a generic type's
`when` clause to error with "'sizeof' requires '.importc' types to be
'.completeStruct'".

The fix adds a check for `tyTypeDesc` wrapping `tyGenericParam`,
recognizing it as an unresolved generic parameter that needs resolution
before evaluation.

Also documents the `completeStruct` pragma in the manual.
2025-12-21 07:37:26 +01:00
..
2024-12-27 19:42:18 +01:00
2023-09-27 05:49:17 +02:00
2024-01-12 20:50:20 +08:00
2023-10-25 20:53:15 +08:00
2025-11-06 17:33:52 +01:00
2022-06-04 07:03:03 +02:00
2023-02-07 16:15:44 +08:00
2023-03-03 23:37:12 +01:00
2023-07-02 22:36:05 +02:00
2023-07-02 22:36:05 +02:00
2024-10-13 07:00:23 +02:00

============================
Nim's documentation system
============================

This folder contains Nim's documentation. The documentation
is written in a format called *Markdown*, a markup language that reads
like ASCII and can be converted to HTML automatically!