Skip to content

Commit

Permalink
try all call kinds in generic type node handling
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Aug 20, 2024
1 parent a4dff1a commit f53a1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/semtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType =
elif op.s == "owned" and optOwnedRefs notin c.config.globalOptions and n.len == 2:
result = semTypeExpr(c, n[1], prev)
else:
if c.inGenericContext > 0 and n.kind == nkCall:
if c.inGenericContext > 0 and n.kind in nkCallKinds:
let n = semGenericStmt(c, n)
result = makeTypeFromExpr(c, n.copyTree)
else:
Expand Down

0 comments on commit f53a1df

Please sign in to comment.