Respect noinit for generic types (#25250)

(cherry picked from commit 99a222d63d)
This commit is contained in:
Yuriy Glukhov
2025-10-31 16:59:24 +01:00
committed by narimiran
parent 6b89497b1e
commit 7f6c0afa59

View File

@@ -247,6 +247,7 @@ proc isOrHasImportedCppType(typ: PType): bool =
searchTypeFor(typ.skipTypes({tyRef}), isImportedCppType)
proc hasNoInit(t: PType): bool =
let t = skipTypes(t, {tyGenericInst})
result = t.sym != nil and sfNoInit in t.sym.flags
proc getTypeDescAux(m: BModule; origTyp: PType, check: var IntSet; kind: TypeDescKind): Rope