summary refs log tree commit diff stats
path: root/compiler/semcall.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2024-03-14 19:23:18 +0100
committerGitHub <noreply@github.com>2024-03-14 19:23:18 +0100
commit7657a637b8500e7ab95c18c8559d66cc2da2d124 (patch)
treea93948c0dab1756944fefde73f26b1982e9aa2ba /compiler/semcall.nim
parent51837e8127c8a0732d8fc46af413685234a0ba6c (diff)
downloadNim-7657a637b8500e7ab95c18c8559d66cc2da2d124.tar.gz
refactoring: no inheritance for PType/PSym (#23403)
Diffstat (limited to 'compiler/semcall.nim')
-rw-r--r--compiler/semcall.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim
index 447a67208..c3a2e77a7 100644
--- a/compiler/semcall.nim
+++ b/compiler/semcall.nim
@@ -663,7 +663,7 @@ proc inheritBindings(c: PContext, x: var TCandidate, expectedType: PType) =
         if t[i] == nil or u[i] == nil: return
         stackPut(t[i], u[i])
     of tyGenericParam:
-      let prebound = x.bindings.idTableGet(t).PType
+      let prebound = x.bindings.idTableGet(t)
       if prebound != nil:
         continue # Skip param, already bound