diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2024-03-14 19:23:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 19:23:18 +0100 |
commit | 7657a637b8500e7ab95c18c8559d66cc2da2d124 (patch) | |
tree | a93948c0dab1756944fefde73f26b1982e9aa2ba /compiler/semcall.nim | |
parent | 51837e8127c8a0732d8fc46af413685234a0ba6c (diff) | |
download | Nim-7657a637b8500e7ab95c18c8559d66cc2da2d124.tar.gz |
refactoring: no inheritance for PType/PSym (#23403)
Diffstat (limited to 'compiler/semcall.nim')
-rw-r--r-- | compiler/semcall.nim | 2 |
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 |