diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2023-12-13 10:29:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 10:29:58 +0100 |
commit | e51e98997ba0aae748ff51eea8133e83370a7df5 (patch) | |
tree | 6df6ec97662bf49d13cda7d33f1b451f9e45aa98 /compiler/semobjconstr.nim | |
parent | df6cb645f7834de0c43afe2deb023c3e01093503 (diff) | |
download | Nim-e51e98997ba0aae748ff51eea8133e83370a7df5.tar.gz |
type refactoring: part 2 (#23059)
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 ae254f45b..96f7658df 100644 --- a/compiler/semobjconstr.nim +++ b/compiler/semobjconstr.nim @@ -413,7 +413,7 @@ proc semConstructTypeAux(c: PContext, result.defaults.add defaults if status in {initPartial, initNone, initUnknown}: discard collectMissingFields(c, t.n, constrCtx, result.defaults) - let base = t[0] + let base = t.baseClass if base == nil or base.id == t.id or base.kind in {tyRef, tyPtr} and base.elementType.id == t.id: break |