summary refs log tree commit diff stats
path: root/compiler/semobjconstr.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2023-12-13 10:29:58 +0100
committerGitHub <noreply@github.com>2023-12-13 10:29:58 +0100
commite51e98997ba0aae748ff51eea8133e83370a7df5 (patch)
tree6df6ec97662bf49d13cda7d33f1b451f9e45aa98 /compiler/semobjconstr.nim
parentdf6cb645f7834de0c43afe2deb023c3e01093503 (diff)
downloadNim-e51e98997ba0aae748ff51eea8133e83370a7df5.tar.gz
type refactoring: part 2 (#23059)
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 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