Skip to content

Commit

Permalink
* fixed error: field 'sym' is not accessible for type 'TNode' using '…
Browse files Browse the repository at this point in the history
…kind = nkIdent' [FieldDefect]
  • Loading branch information
nickysn committed Jan 12, 2024
1 parent b570e11 commit 588fbf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/sempass2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,8 @@ proc trackCall(tracked: PEffects; n: PNode) =
var actualLoc = a.info
if n.kind == nkHiddenCallConv:
actualLoc = n.info
markCaughtExceptions(tracked, tracked.graph, actualLoc, a.sym, tracked.graph.usageSym)
if a.kind == nkSym:
markCaughtExceptions(tracked, tracked.graph, actualLoc, a.sym, tracked.graph.usageSym)

let notConstExpr = getConstExpr(tracked.ownerModule, n, tracked.c.idgen, tracked.graph) == nil
if notConstExpr:
Expand Down

0 comments on commit 588fbf5

Please sign in to comment.