From 042f3f70f7f7c49d4a978643ec585e66f799a362 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Sat, 8 Nov 2025 09:51:23 +0800 Subject: [PATCH] fixes type --- compiler/ccgexprs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index d3c4de0f4a..8c8a12a327 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -920,7 +920,7 @@ proc genDeref(p: BProc, e: PNode, d: var TLoc) = else: a = initLocExprSingleUse(p, e[0]) - if e.typ.kind == tyObject: + if e.typ != nil and e.typ.kind == tyObject: # bug #23453 #25265 discard getTypeDesc(p.module, e.typ) if d.k == locNone: