summary refs log tree commit diff stats
path: root/compiler/semobjconstr.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-12-15 15:13:25 +0800
committerGitHub <noreply@github.com>2023-12-15 08:13:25 +0100
commitcca5684a17e654a13ddac046f1e76873d8c19f55 (patch)
treeafda8a5c8a114bbb85db9a2e743e6e88b4f899fb /compiler/semobjconstr.nim
parenta4628532b27857d095e69b7b162b453fc2b8373c (diff)
downloadNim-cca5684a17e654a13ddac046f1e76873d8c19f55.tar.gz
fixes yet another strictdefs bug (#23069)
Diffstat (limited to 'compiler/semobjconstr.nim')
-rw-r--r--compiler/semobjconstr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semobjconstr.nim b/compiler/semobjconstr.nim
index 96f7658df..e29d723d7 100644
--- a/compiler/semobjconstr.nim
+++ b/compiler/semobjconstr.nim
@@ -405,7 +405,7 @@ proc semConstructFields(c: PContext, n: PNode, constrCtx: var ObjConstrContext,
 proc semConstructTypeAux(c: PContext,
                          constrCtx: var ObjConstrContext,
                          flags: TExprFlags): tuple[status: InitStatus, defaults: seq[PNode]] =
-  result.status = initUnknown
+  result = (initUnknown, @[])
   var t = constrCtx.typ
   while true:
     let (status, defaults) = semConstructFields(c, t.n, constrCtx, flags)