diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-12-15 15:13:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 08:13:25 +0100 |
commit | cca5684a17e654a13ddac046f1e76873d8c19f55 (patch) | |
tree | afda8a5c8a114bbb85db9a2e743e6e88b4f899fb /compiler/semobjconstr.nim | |
parent | a4628532b27857d095e69b7b162b453fc2b8373c (diff) | |
download | Nim-cca5684a17e654a13ddac046f1e76873d8c19f55.tar.gz |
fixes yet another strictdefs bug (#23069)
Diffstat (limited to 'compiler/semobjconstr.nim')
-rw-r--r-- | compiler/semobjconstr.nim | 2 |
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) |